1 error[E0107]: missing generics for associated type `Trait::Assoc`
2 --> $DIR/elided-in-expr-position.rs:10:26
4 LL | fn g(&self) -> Self::Assoc;
5 | ^^^^^ expected 1 lifetime argument
7 note: associated type defined here, with 1 lifetime parameter: `'a`
8 --> $DIR/elided-in-expr-position.rs:5:10
10 LL | type Assoc<'a> where Self: 'a;
12 help: add missing lifetime argument
14 LL | fn g(&self) -> Self::Assoc<'a>;
17 error[E0107]: missing generics for associated type `Trait::Assoc`
18 --> $DIR/elided-in-expr-position.rs:32:26
20 LL | fn g(&self) -> Self::Assoc {
21 | ^^^^^ expected 1 lifetime argument
23 note: associated type defined here, with 1 lifetime parameter: `'a`
24 --> $DIR/elided-in-expr-position.rs:5:10
26 LL | type Assoc<'a> where Self: 'a;
28 help: add missing lifetime argument
30 LL | fn g(&self) -> Self::Assoc<'a> {
33 error: aborting due to 2 previous errors
35 For more information about this error, try `rustc --explain E0107`.