]> 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 d92c053476f2d44da09275f18ad2c8d75676cc4c..a4d38d99c95ed22b594b07ef1fadbb0167961671 100644 (file)
@@ -1,7 +1,7 @@
-#![feature(plugin)]
-#![plugin(clippy)]
 
-#![deny(drop_copy, forget_copy)]
+
+
+#![warn(drop_copy, forget_copy)]
 #![allow(toplevel_ref_arg, drop_ref, forget_ref, unused_mut)]
 
 use std::mem::{drop, forget};
@@ -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;