]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/drop_forget_copy.rs
Lint for numeric literals that have a better representation in another format
[rust.git] / tests / ui / drop_forget_copy.rs
index 4e48a89b65988f467a35431d902f5c947da24f4e..a4d38d99c95ed22b594b07ef1fadbb0167961671 100644 (file)
@@ -1,5 +1,5 @@
-#![feature(plugin)]
-#![plugin(clippy)]
+
+
 
 #![warn(drop_copy, forget_copy)]
 #![allow(toplevel_ref_arg, drop_ref, forget_ref, unused_mut)]
@@ -42,7 +42,7 @@ fn main() {
     forget(s4);
     forget(s5);
 
-    let a1 = AnotherStruct {x: 255, y: 0, z: vec![1, 2, 3]};
+    let a1 = AnotherStruct {x: 0xFF, y: 0, z: vec![1, 2, 3]};
     let a2 = &a1;
     let mut a3 = a1.clone();
     let ref a4 = a1;