]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/gat-in-trait-path-undeclared-lifetime.rs
Rollup merge of #82308 - estebank:issue-82290, r=lcnr
[rust.git] / src / test / ui / generic-associated-types / gat-in-trait-path-undeclared-lifetime.rs
1 #![feature(generic_associated_types)]
2   //~^ WARNING: the feature `generic_associated_types` is incomplete
3
4 trait X {
5   type Y<'x>;
6 }
7
8 fn main() {
9   fn _f(arg : Box<dyn for<'a> X<Y<'x> = &'a [u32]>>) {}
10     //~^ ERROR: use of undeclared lifetime name `'x`
11     //~| ERROR: binding for associated type `Y` references lifetime
12 }