1 // It's not yet clear how '_ and GATs should interact.
2 // Forbid it for now but proper support might be added
3 // at some point in the future.
5 #![feature(generic_associated_types)]
11 fn foo(x: &impl Foo<Item<'_> = u32>) { }
12 //~^ ERROR `'_` cannot be used here [E0637]
14 fn bar(x: &impl for<'a> Foo<Item<'a> = &'_ u32>) { }
15 //~^ ERROR missing lifetime specifier