rust/tests/run-fail/panic/overflowing-lsh-neg.rs

6 lines
71 B
Rust
Raw Normal View History

2020-02-21 03:28:24 -06:00
#![allow(arithmetic_overflow)]
2019-11-29 06:18:54 -06:00
fn main() {
let _n = 2i64 << -1;
}