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