summaryrefslogtreecommitdiffstats
path: root/src/test/ui/generic-associated-types/gat-trait-path-missing-lifetime.rs
blob: 83b86f04a957ff77728d4f74b7e2721f20229182 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
trait X {
  type Y<'a>;

  fn foo<'a>(t : Self::Y<'a>) -> Self::Y<'a> { t }
}

impl<T> X for T {
  fn foo<'a, T1: X<Y = T1>>(t : T1) -> T1::Y<'a> {
    //~^ ERROR missing generics for associated type
    //~^^ ERROR missing generics for associated type
    t
  }
}

fn main() {}