Sign in
fuchsia
/
third_party
/
rust
/
346aec9b02f3c74f3fce97fd6bda24709d220e49
/
.
/
src
/
test
/
ui
/
numbers-arithmetic
/
promoted_overflow.rs
blob: da59e81ed6bf702595c2629a644e180fdcf6e4a5 [
file
] [
log
] [
blame
]
#![
allow
(
arithmetic_overflow
)]
// run-fail
// error-pattern: overflow
// compile-flags: -C overflow-checks=yes
fn
main
()
{
let
x
:
&
'
static
u32
=
&(
0u32
-
1
);
}