Sign in
fuchsia
/
third_party
/
rust
/
cfcc5c296ed6fabcc8b9d380eaaea8a7352299fd
/
.
/
src
/
test
/
ui
/
nll
/
issue-58053.rs
blob: 0992e3a85ae94964023d9e2db4037b77640ee64b [
file
] [
log
] [
blame
]
#![
feature
(
nll
)]
fn
main
()
{
let
i
=
&
3
;
let
f
=
|
x
:
&
i32
|
->
&
i32
{
x
};
//~^ ERROR lifetime may not live long enough
let
j
=
f
(
i
);
let
g
=
|
x
:
&
i32
|
{
x
};
//~^ ERROR lifetime may not live long enough
let
k
=
g
(
i
);
}