Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
nll
/
issue-52534-2.rs
blob: e416264ed09fd889f2a937d4353fc97c5c0fa094 [
file
] [
log
] [
blame
] [
edit
]
fn
foo
(
x
:
&
u32
)
->
&
u32
{
let
y
;
{
let
x
=
32
;
y
=
&
x
//~^ ERROR does not live long enough
}
println
!(
"{}"
,
y
);
x
}
fn
main
()
{
}