Sign in
rust
/
rust
/
dc9879cb3d3446c41b6d7d6813b7bfd17da1134f
/
.
/
tests
/
ui
/
generic-associated-types
/
issue-85921.rs
blob: 293ce7b816a6bf50da5bf1b3a0a0a858066da9eb [
file
] [
log
] [
blame
]
//@ check-pass
trait
Trait
{
type
Assoc
<
'
a
>;
fn
with_assoc
(
f
:
impl
FnOnce
(
Self
::
Assoc
<
'
_
>));
}
impl
Trait
for
()
{
type
Assoc
<
'
a
>
=
i32
;
fn
with_assoc
(
f
:
impl
FnOnce
(
Self
::
Assoc
<
'
_
>))
{
f
(
5i32
)
}
}
fn
main
()
{}