Sign in
android
/
toolchain
/
rustc
/
635618df8991b8a005e435895ea0b1eee7e3faf0
/
.
/
tests
/
ui
/
closures
/
supertrait-hint-cycle-3.rs
blob: 8149474df196eb55ce09d1042ff30d8540b9829e [
file
] [
log
] [
blame
]
// check-pass
trait
Foo
<
'
a
>
{
type
Input
;
}
impl
<
F
:
Fn
(
u32
)>
Foo
<
'
_
>
for
F
{
type
Input
=
u32
;
}
fn
needs_super
<
F
:
for
<
'a> Fn(<F as Foo<'
a
>>::
Input
)
+
for
<
'a> Foo<'
a
>>(
_
:
F
)
{}
fn
main
()
{
needs_super
(|
_
:
u32
|
{});
}