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