]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/decimal_literal_representation.rs
Move MSRV tests into the lint specific test files
[rust.git] / tests / ui / decimal_literal_representation.rs
index d841f16757a54d8d9d214164c1e23b4ec547dbb9..55d07698e7e5bba7b3950697b7683ecfc5c9f80f 100644 (file)
@@ -1,3 +1,5 @@
+// run-rustfix
+
 #[warn(clippy::decimal_literal_representation)]
 #[allow(unused_variables)]
 #[rustfmt::skip]
@@ -17,6 +19,9 @@ fn main() {
         65_280,        // 0xFF00
         2_131_750_927, // 0x7F0F_F00F
         2_147_483_647, // 0x7FFF_FFFF
+        #[allow(overflowing_literals)]
         4_042_322_160, // 0xF0F0_F0F0
+        32_773usize,   // 0x8005_usize
+        2_131_750_927isize, // 0x7F0F_F00F_isize
     );
 }