]> 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 9fef06b0edeffdf69215084cb4ebc99b0003260a..a4d38d99c95ed22b594b07ef1fadbb0167961671 100644 (file)
@@ -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;