Sign in
android
/
toolchain
/
rustc
/
d2dbbcd40813d506244f1255bc2c84088a0197e1
/
.
/
src
/
test
/
ui
/
numbers-arithmetic
/
overflowing-rsh-6.rs
blob: f75e779ed158c68dcafc1032199a8f6b90c55e66 [
file
] [
log
] [
blame
]
// build-fail
// compile-flags: -C debug-assertions
#![
deny
(
arithmetic_overflow
)]
fn
main
()
{
let
_n
=
1i64
>>
[
64
][
0
];
//~^ ERROR: this arithmetic operation will overflow
}