rust/tests/compile-fail/overflowing-unchecked-rsh.rs
2019-02-26 18:37:45 +00:00

12 lines
189 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);
}
}