]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/gat-trait-path-missing-lifetime.rs
Auto merge of #99612 - yanchen4791:issue-95079-fix, r=compiler-errors
[rust.git] / src / test / ui / generic-associated-types / gat-trait-path-missing-lifetime.rs
1 #![feature(generic_associated_types)]
2
3 trait X {
4   type Y<'a>;
5
6   fn foo<'a>(t : Self::Y<'a>) -> Self::Y<'a> { t }
7 }
8
9 impl<T> X for T {
10   fn foo<'a, T1: X<Y = T1>>(t : T1) -> T1::Y<'a> {
11     //~^ ERROR missing generics for associated type
12     //~^^ ERROR missing generics for associated type
13     t
14   }
15 }
16
17 fn main() {}