]> git.lizzy.rs Git - rust.git/blob - src/test/ui/numbers-arithmetic/overflowing-rsh-6.rs
Merge commit '61667dedf55e3e5aa584f7ae2bd0471336b92ce9' into sync_cg_clif-2021-09-19
[rust.git] / src / test / ui / numbers-arithmetic / overflowing-rsh-6.rs
1 // build-fail
2 // compile-flags: -C debug-assertions
3
4 #![deny(arithmetic_overflow, const_err)]
5
6 fn main() {
7     let _n = 1i64 >> [64][0];
8     //~^ ERROR: this arithmetic operation will overflow
9 }