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

7 lines
138 B
Rust

#![allow(exceeding_bitshifts)]
#![allow(const_err)]
fn main() {
let _n = 2i64 << -1; //~ ERROR attempt to shift left with overflow
}