]> git.lizzy.rs Git - rust.git/blob - tests/ui/numbers-arithmetic/overflowing-lsh-1.rs
Rollup merge of #106644 - alexcrichton:update-wasi-toolchain, r=cuviper
[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 }