Sign in
fuchsia
/
third_party
/
rust
/
4360fd7f342943b3d25a3eb7064fd3ef7599274e
/
.
/
tests
/
ui
/
closures
/
issue-97607.rs
blob: 6dccf8113d694211fe3b75582471d39e194f22da [
file
] [
log
] [
blame
]
//@ check-pass
#[
allow
(
unused
)]
fn
test
<
T
,
F
,
U
>(
f
:
F
)
->
Box
<
dyn
Fn
(
T
)
->
U
+
'
static
>
where
F
:
'
static
+
Fn
(
T
)
->
U
,
for
<
'a> U: '
a
,
// < This is the problematic line, see #97607
{
Box
::
new
(
move
|
t
|
f
(
t
))
}
fn
main
()
{}