]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/mem_forget.rs
Merge commit '7ea7cd165ad6705603852771bf82cc2fd6560db5' into clippyup2
[rust.git] / tests / ui / mem_forget.rs
index 7854a3739680db2fc9703a2ea1f1a9da15842f28..e5b35c098a23969a2e47ee732d03aaae7ea23c35 100644 (file)
@@ -1,15 +1,11 @@
-#![feature(plugin)]
-#![plugin(clippy)]
-
-
-use std::sync::Arc;
 use std::rc::Rc;
+use std::sync::Arc;
 
-use std::mem::forget as forgetSomething;
 use std::mem as memstuff;
+use std::mem::forget as forgetSomething;
 
-#[warn(mem_forget)]
-#[allow(forget_copy)]
+#[warn(clippy::mem_forget)]
+#[allow(clippy::forget_copy)]
 fn main() {
     let five: i32 = 5;
     forgetSomething(five);