Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
closures
/
supertrait-hint-references-assoc-ty.rs
blob: fa74ffc5bec51c0382fd3241b6989fb86318e946 [
file
] [
log
] [
blame
] [
edit
]
//@ check-pass
pub
trait
Fn0
:
Fn
(
i32
)
->
Self
::
Out
{
type
Out
;
}
impl
<
F
:
Fn
(
i32
)
->
()>
Fn0
for
F
{
type
Out
=
();
}
pub
fn
closure_typer
(
_
:
impl
Fn0
)
{}
fn
main
()
{
closure_typer
(
move
|
x
|
{
let
_
:
i64
=
x
.
into
();
});
}