summaryrefslogtreecommitdiffstats
path: root/src/test/ui/generic-associated-types/gat-in-trait-path-undeclared-lifetime.rs
blob: f542a7f545e0be907c10bfdc678eaa89d5a0cc52 (plain)
1
2
3
4
5
6
7
8
9
10
11
#![feature(generic_associated_types)]

trait X {
  type Y<'x>;
}

fn main() {
  fn _f(arg : Box<dyn for<'a> X<Y<'x> = &'a [u32]>>) {}
    //~^ ERROR: use of undeclared lifetime name `'x`
    //~| ERROR: binding for associated type `Y` references lifetime
}