1 #![allow(incomplete_features)]
2 #![feature(generic_associated_types)]
13 type Quux<'a>: Foo where Self: 'a;
15 // This weird type tests that we can use universal function call syntax to access the Item on
16 type Baa<'a>: Deref<Target = <Self::Quux<'a> as Foo>::Bar<'a, 'static>> where Self: 'a;
19 impl<T> Baz for T where T: Foo {
20 type Quux<'a> where T: 'a = T;
22 type Baa<'a> where T: 'a = &'a <T as Foo>::Bar<'a, 'static>;