rust/tests/compile-fail/intrinsics/overflowing-unchecked-rsh.rs
2020-04-11 11:36:55 +02:00

12 lines
191 B
Rust

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