summaryrefslogtreecommitdiffstats
path: root/tests/ui/numbers-arithmetic/overflowing-lsh-1.rs
blob: 7f8b0c877600fb7674590a4dfa39659532aec80c (plain)
1
2
3
4
5
6
7
8
9
// build-fail
// compile-flags: -C debug-assertions

#![deny(arithmetic_overflow)]

fn main() {
    let _x = 1_i32 << 32;
    //~^ ERROR: this arithmetic operation will overflow
}