rust/tests/compile-fail/overflowing-lsh-neg.rs

7 lines
138 B
Rust
Raw Normal View History

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