]> git.lizzy.rs Git - rust.git/blob - tests/ui/numbers-arithmetic/overflowing-lsh-3.rs
Rollup merge of #106446 - bzEq:fix-unwind-lsda, r=Amanieu
[rust.git] / tests / ui / numbers-arithmetic / overflowing-lsh-3.rs
1 // build-fail
2 // compile-flags: -C debug-assertions
3
4 #![deny(arithmetic_overflow)]
5
6 fn main() {
7     let _x = 1_u64 << 64;
8     //~^ ERROR: this arithmetic operation will overflow
9 }