]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/wrapping-int-api.rs
Update tests to remove old numeric constants
[rust.git] / src / test / ui / wrapping-int-api.rs
index 2a5baad8b786f67e2f20919249b1a7b0b6e86400..6e2fc7f80b9c480404b05b788ee408bba2d9ec56 100644 (file)
@@ -1,8 +1,8 @@
 // run-pass
 // Test inherent wrapping_* methods for {i,u}{size,8,16,32,64}.
 
-use std::{i8, i16, i32, i64, isize};
-use std::{u8, u16, u32, u64, usize};
+// Don't warn about overflowing ops on 32-bit platforms
+#![cfg_attr(target_pointer_width = "32", allow(const_err))]
 
 fn main() {
     assert_eq!(   i8::MAX.wrapping_add(1),    i8::MIN);