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