Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
closures
/
supertrait-hint-cycle-3.rs
blob: 4003f679fa2f1bac0cf078b2d72c0d7a2674a7b2 [
file
] [
log
] [
blame
] [
edit
]
//@ 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
|
{});
}