]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/gat-in-trait-path-undeclared-lifetime.rs
Merge commit '5ff7b632a95bac6955611d85040859128902c580' into sync-rustfmt-subtree
[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 }