rust/tests/compile-fail/overflowing-rsh-1.rs

6 lines
129 B
Rust
Raw Normal View History

#![allow(exceeding_bitshifts, const_err)]
fn main() {
2018-10-19 04:50:17 -05:00
let _n = 1i64 >> 64; //~ ERROR attempt to shift right with overflow
}