1 error[E0107]: missing generics for associated type `X::Y`
2 --> $DIR/gat-trait-path-missing-lifetime.rs:8:20
4 LL | fn foo<'a, T1: X<Y = T1>>(t : T1) -> T1::Y<'a> {
5 | ^ expected 1 lifetime argument
7 note: associated type defined here, with 1 lifetime parameter: `'a`
8 --> $DIR/gat-trait-path-missing-lifetime.rs:2:8
12 help: add missing lifetime argument
14 LL | fn foo<'a, T1: X<Y<'a> = T1>>(t : T1) -> T1::Y<'a> {
17 error[E0107]: missing generics for associated type `X::Y`
18 --> $DIR/gat-trait-path-missing-lifetime.rs:8:20
20 LL | fn foo<'a, T1: X<Y = T1>>(t : T1) -> T1::Y<'a> {
21 | ^ expected 1 lifetime argument
23 note: associated type defined here, with 1 lifetime parameter: `'a`
24 --> $DIR/gat-trait-path-missing-lifetime.rs:2:8
28 help: add missing lifetime argument
30 LL | fn foo<'a, T1: X<Y<'a> = T1>>(t : T1) -> T1::Y<'a> {
33 error: aborting due to 2 previous errors
35 For more information about this error, try `rustc --explain E0107`.