]> 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 c196b27a3a6c49f362dab9eb3fa63901ee053753..55d07698e7e5bba7b3950697b7683ecfc5c9f80f 100644 (file)
@@ -1,17 +1,10 @@
-// Copyright 2014-2018 The Rust Project Developers. See the COPYRIGHT
-// file at the top-level directory of this distribution.
-//
-// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
+// run-rustfix
 
 #[warn(clippy::decimal_literal_representation)]
 #[allow(unused_variables)]
+#[rustfmt::skip]
 fn main() {
-    let good = (
-        // Hex:
+    let good = (       // Hex:
         127,           // 0x7F
         256,           // 0x100
         511,           // 0x1FF
@@ -21,12 +14,14 @@ fn main() {
         61_683,        // 0xF0F3
         2_131_750_925, // 0x7F0F_F00D
     );
-    let bad = (
-        // Hex:
+    let bad = (        // Hex:
         32_773,        // 0x8005
         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
     );
 }