Sign in
android
/
toolchain
/
rustc
/
5c0824a599f2f1f4dcb9c92edf09f6c1b555988d
/
.
/
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
}