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

6 lines
118 B
Rust

#![allow(exceeding_bitshifts)]
fn main() {
let _n = 1i64 >> 64; //~ ERROR attempt to shift right with overflow
}