Sign in
android
/
toolchain
/
rustc
/
d720b3f2ba07cb42ff7b311589c99daefe3aaa22
/
.
/
tests
/
ui
/
numbers-arithmetic
/
overflowing-rsh-1.rs
blob: 80593c8656f5180e0c1a284af2d28cec5c14a1bd [
file
] [
log
] [
blame
]
// build-fail
// compile-flags: -C debug-assertions
#![
deny
(
arithmetic_overflow
)]
fn
main
()
{
let
_x
=
-
1
_i32
>>
32
;
//~^ ERROR: this arithmetic operation will overflow
}