Sign in
fuchsia
/
third_party
/
rust
/
a10a02bf5fd00e4b34f1856af17d058dd5ec06f0
/
.
/
src
/
test
/
ui
/
numbers-arithmetic
/
overflowing-rsh-3.rs
blob: 8ee6dde93eafe5793665df7595f10cff1fd968c7 [
file
] [
log
] [
blame
]
// build-fail
// compile-flags: -C debug-assertions
#![
deny
(
arithmetic_overflow
,
const_err
)]
fn
main
()
{
let
_x
=
-
1
_i64
>>
64
;
//~^ ERROR: this arithmetic operation will overflow
}