Sign in
◑
Theme
rust
/
rust
/
4d38622e8bec00a9001264c4e9f4723fceca23cb
/
.
/
src
/
tools
/
miri
/
tests
/
panic
/
overflowing-rsh-2.rs
blob: 19d16e7bc84a2e3117977e7ec0b4bd03f894fa6a [
file
]
#![
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
);
}