rust/tests/fail/intrinsics/overflowing-unchecked-rsh.rs
2022-06-23 13:49:02 +00:00

11 lines
193 B
Rust

#![feature(core_intrinsics)]
use std::intrinsics::*;
fn main() {
unsafe {
let _n = unchecked_shr(1i64, 64);
//~^ ERROR: overflowing shift by 64 in `unchecked_shr`
}
}