]> git.lizzy.rs Git - rust.git/blob - src/test/ui/numbers-arithmetic/overflowing-rsh-2.rs
Add 'src/tools/miri/' from commit '75dd959a3a40eb5b4574f8d2e23aa6efbeb33573'
[rust.git] / src / test / ui / numbers-arithmetic / overflowing-rsh-2.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 >> -1;
8     //~^ ERROR: this arithmetic operation will overflow
9 }