]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/mem_forget.rs
Addition `manual_map` test for `unsafe` blocks
[rust.git] / tests / ui / mem_forget.rs
index 991a402e2076c67fc536f76a65b5b4e5c2f846e7..e5b35c098a23969a2e47ee732d03aaae7ea23c35 100644 (file)
@@ -1,15 +1,11 @@
-
-
-
-
-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);