Sign in
fuchsia
/
third_party
/
rust
/
daafeb35b731a599fc8b6c4cf37b81f838dae319
/
.
/
src
/
test
/
ui
/
in-band-lifetimes
/
no_introducing_in_band_in_locals.rs
blob: c1c40afdbab55ac014b138dd3c8bc9abc2740463 [
file
] [
log
] [
blame
]
#![
allow
(
warnings
)]
#![
feature
(
in_band_lifetimes
)]
fn
foo
(
x
:
&
u32
)
{
let
y
:
&
'
test u32
=
x
;
//~ ERROR use of undeclared lifetime
}
fn
foo2
(
x
:
&
u32
)
{}
fn
bar
()
{
let
y
:
fn
(&
'
test u32
)
=
foo2
;
//~ ERROR use of undeclared lifetime
}
fn
main
()
{}