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