rust/src/test/ui/issues/issue-6130.rs
2019-07-27 18:56:16 +03:00

11 lines
170 B
Rust

// run-pass
pub fn main() {
let i: usize = 0;
assert!(i <= 0xFFFF_FFFF);
let i: isize = 0;
assert!(i >= -0x8000_0000);
assert!(i <= 0x7FFF_FFFF);
}