clippy 0.0.32

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();
}