Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
nll
/
user-annotations
/
cast_static_lifetime.rs
blob: bb6129dacda8d1e2368c426d6bf9421e09831966 [
file
] [
log
] [
blame
]
#![
allow
(
warnings
)]
fn
main
()
{
let
x
=
22
_u32
;
let
y
:
&
u32
=
(&
x
)
as
&
'
static
u32
;
//~ ERROR `x` does not live long enough
}