Sign in
rust
/
rust
/
refs/heads/perf-tmp
/
.
/
src
/
tools
/
miri
/
tests
/
panic
/
overflowing-rsh-2.rs
blob: 19d16e7bc84a2e3117977e7ec0b4bd03f894fa6a [
file
] [
log
] [
blame
] [
edit
]
#![
allow
(
arithmetic_overflow
)]
fn
main
()
{
// Make sure we catch overflows that would be hidden by first casting the RHS to u32
let
_n
=
1i64
>>
(
u32
::
MAX
as
i64
+
1
);
}