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