Sign in
fuchsia
/
third_party
/
rust
/
87ef96d3946ed4add766c0a2cd72d8443e92e4a0
/
.
/
src
/
test
/
ui
/
nll
/
issue-58053.rs
blob: d4338905ed2df6ee2fdc6c07d858a06d96bebecf [
file
] [
log
] [
blame
]
#![
allow
(
warnings
)]
#![
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
);
}