1 warning: the feature `generic_associated_types` is incomplete and may not be safe to use and/or cause compiler crashes
2 --> $DIR/gat-trait-path-missing-lifetime.rs:1:12
4 LL | #![feature(generic_associated_types)]
5 | ^^^^^^^^^^^^^^^^^^^^^^^^
7 = note: `#[warn(incomplete_features)]` on by default
8 = note: see issue #44265 <https://github.com/rust-lang/rust/issues/44265> for more information
10 error[E0107]: missing generics for associated type `X::Y`
11 --> $DIR/gat-trait-path-missing-lifetime.rs:11:20
13 LL | fn foo<'a, T1: X<Y = T1>>(t : T1) -> T1::Y<'a> {
14 | ^ expected 1 lifetime argument
16 note: associated type defined here, with 1 lifetime parameter: `'a`
17 --> $DIR/gat-trait-path-missing-lifetime.rs:5:8
21 help: add missing lifetime argument
23 LL | fn foo<'a, T1: X<Y<'a> = T1>>(t : T1) -> T1::Y<'a> {
26 error[E0107]: missing generics for associated type `X::Y`
27 --> $DIR/gat-trait-path-missing-lifetime.rs:11:20
29 LL | fn foo<'a, T1: X<Y = T1>>(t : T1) -> T1::Y<'a> {
30 | ^ expected 1 lifetime argument
32 note: associated type defined here, with 1 lifetime parameter: `'a`
33 --> $DIR/gat-trait-path-missing-lifetime.rs:5:8
37 help: add missing lifetime argument
39 LL | fn foo<'a, T1: X<Y<'a> = T1>>(t : T1) -> T1::Y<'a> {
42 error: aborting due to 2 previous errors; 1 warning emitted
44 For more information about this error, try `rustc --explain E0107`.