Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
associated-inherent-types
/
assoc-inherent-late-bound.rs
blob: 9f3798b27afa2cab738120b1368a3e6834e0a892 [
file
] [
log
] [
blame
]
//@ check-pass
#![
feature
(
inherent_associated_types
)]
#![
allow
(
incomplete_features
)]
struct
Foo
<
T
>(
T
);
impl
<
'a> Foo<fn(&'
a
())>
{
type
Assoc
=
&
'
a
();
}
fn
bar
(
_
:
for
<
'a> fn(Foo<fn(Foo<fn(&'
static
())>::
Assoc
)>::
Assoc
))
{}
fn
main
()
{}