1 error[E0106]: missing lifetime specifier
2 --> $DIR/missing-lifetime-in-alias.rs:20:24
4 LL | type B<'a> = <A<'a> as Trait>::Foo;
5 | ^^^^^ expected named lifetime parameter
7 help: consider using the `'a` lifetime
9 LL | type B<'a> = <A<'a> as Trait<'a>>::Foo;
12 error[E0106]: missing lifetime specifier
13 --> $DIR/missing-lifetime-in-alias.rs:24:28
15 LL | type C<'a, 'b> = <A<'a> as Trait>::Bar;
16 | ^^^^^ expected named lifetime parameter
18 note: these named lifetimes are available to use
19 --> $DIR/missing-lifetime-in-alias.rs:24:8
21 LL | type C<'a, 'b> = <A<'a> as Trait>::Bar;
23 help: consider using one of the available lifetimes here
25 LL | type C<'a, 'b> = <A<'a> as Trait<'lifetime>>::Bar;
28 error[E0107]: missing generics for associated type `Trait::Bar`
29 --> $DIR/missing-lifetime-in-alias.rs:24:36
31 LL | type C<'a, 'b> = <A<'a> as Trait>::Bar;
32 | ^^^ expected 1 lifetime argument
34 note: associated type defined here, with 1 lifetime parameter: `'b`
35 --> $DIR/missing-lifetime-in-alias.rs:4:10
39 help: add missing lifetime argument
41 LL | type C<'a, 'b> = <A<'a> as Trait>::Bar<'a>;
44 error: aborting due to 3 previous errors
46 Some errors have detailed explanations: E0106, E0107.
47 For more information about an error, try `rustc --explain E0106`.