diff options
Diffstat (limited to 'tests/ui/associated-inherent-types/issue-111404-0.rs')
-rw-r--r-- | tests/ui/associated-inherent-types/issue-111404-0.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/associated-inherent-types/issue-111404-0.rs b/tests/ui/associated-inherent-types/issue-111404-0.rs new file mode 100644 index 000000000..1180577bd --- /dev/null +++ b/tests/ui/associated-inherent-types/issue-111404-0.rs @@ -0,0 +1,14 @@ +// 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(&'a ())>::Assoc)>::Assoc)) {} + +fn main() {} |