Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
clippy 0.0.28 - Docs.rs
[go: Go Back, main page]

clippy 0.0.28

A bunch of helpful lints to avoid common pitfalls in Rust
#![feature(plugin, box_syntax)]
#![plugin(clippy)]
#![allow(warnings, clippy)]

#![warn(boxed_local)]

#[derive(Clone)]
struct A;

impl A {
    fn foo(&self){}
}

fn main() {
}

fn quux(x: &Box<A>) {}
fn quux2(x: &A) {}


fn uhoh() {
    let x = box A; //nowarn
    let y = &x;
    y.clone();
}