Sign in
fuchsia
/
third_party
/
rust
/
f22bb2e72267890782897c208bbc9114d023dfc7
/
.
/
src
/
test
/
ui
/
nll
/
borrowed-local-error.rs
blob: d333356d964ce79e11411c81590c63410376f2ff [
file
] [
log
] [
blame
]
fn
gimme
(
x
:
&(
u32
,))
->
&
u32
{
&
x
.
0
}
fn
main
()
{
let
x
=
gimme
({
let
v
=
(
22
,);
&
v
//~^ ERROR `v` does not live long enough [E0597]
});
println
!(
"{:?}"
,
x
);
}