rust/tests/compile-fail/overflowing-unchecked-rsh.rs
2019-08-03 20:54:57 +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);
}
}