Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
hr-subtype
/
return-static.rs
blob: 6455854f34db89cc8a7bd0e112733a2f4bd0e3de [
file
] [
log
] [
blame
]
// check-pass
fn
make
<
T
>()
->
T
{
panic
!()
}
fn
take
<
T
>(
x
:
T
)
{}
fn
main
()
{
let
x
:
for
<
'a> fn(&'
a u32
)
->
_
=
make
();
let
y
:
&
'
static
u32
=
x
(&
22
);
take
::<
for
<
'b> fn(&'
b u32
)
->
&
'
b u32
>(
x
);
}