]> git.lizzy.rs Git - rust.git/blob - src/test/ui/numbers-arithmetic/overflowing-lsh-2.rs
Merge commit '4bdfb0741dbcecd5279a2635c3280726db0604b5' into clippyup
[rust.git] / src / test / ui / numbers-arithmetic / overflowing-lsh-2.rs
1 // build-fail
2 // compile-flags: -C debug-assertions
3
4 #![deny(arithmetic_overflow)]
5
6 fn main() {
7     let _x = 1 << -1;
8     //~^ ERROR: this arithmetic operation will overflow
9 }