mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 14:31:55 +00:00
11 lines
171 B
Rust
11 lines
171 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);
|
|
}
|