rust/tests/fail/intrinsics/overflowing-unchecked-rsh.rs

9 lines
166 B
Rust
Raw Normal View History

2022-07-24 13:28:45 -05:00
#![feature(unchecked_math)]
fn main() {
unsafe {
2022-07-24 13:28:45 -05:00
let _n = 1i64.unchecked_shr(64);
//~^ ERROR: overflowing shift by 64 in `unchecked_shr`
}
}