Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
numbers-arithmetic
/
promoted_overflow_opt.rs
blob: 4785abbc55470b76b855b4940f82db910fd1efca [
file
] [
log
] [
blame
]
// run-pass
#![
allow
(
const_err
)]
// compile-flags: -O
fn
main
()
{
let
x
=
&(
0u32
-
1
);
assert_eq
!(*
x
,
u32
::
MAX
)
}