Sign in
android
/
toolchain
/
rustc
/
d2dbbcd40813d506244f1255bc2c84088a0197e1
/
.
/
src
/
test
/
ui
/
closures
/
issue-97607.rs
blob: 74c910ad0bba6855b4ccfb7b2ae0be80236bf729 [
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
()
{}