4 type Assoc<'a> where Self: 'a;
6 fn f(&self) -> Self::Assoc<'_>;
8 // Disallow elision in return position, for now
9 fn g(&self) -> Self::Assoc;
10 //~^ ERROR missing generics for associated type `Trait::Assoc`
17 pub struct GenericStruct<'a> {
21 impl Trait for Struct {
22 type Assoc<'a> = GenericStruct<'a>;
24 fn f(&self) -> Self::Assoc<'_> {
30 // Disallow elision in return position, for now
31 fn g(&self) -> Self::Assoc {
32 //~^ ERROR missing generics for associated type `Trait::Assoc`