]> git.proxmox.com Git - rustc.git/blob - src/test/ui/numbers-arithmetic/overflowing-lsh-1.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / 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 }