2 // Regression test for issue #67844
3 // Ensures that we properly handle nested TAIT occurrences
4 // with generic parameters
6 #![feature(type_alias_impl_trait)]
14 type Return<A> = impl WithAssoc<AssocType = impl WithParam<A>>;
17 impl<A> WithParam<A> for MyParam {}
21 impl WithAssoc for MyStruct {
22 type AssocType = MyParam;
25 fn my_fun<A>() -> Return<A> {
29 fn my_other_fn<A>() -> impl WithAssoc<AssocType = impl WithParam<A>> {