1 #![allow(incomplete_features)]
2 #![feature(generic_associated_types)]
6 fn m(&self) -> Self::Y<'_>;
12 fn m(&self) -> Self::Y<'_> {
17 fn f(x: &impl for<'a> X<Y<'a> = &'a ()>) -> &'static () {
19 //~^ ERROR explicit lifetime required
22 fn g<T: for<'a> X<Y<'a> = &'a ()>>(x: &T) -> &'static () {
24 //~^ ERROR explicit lifetime required
27 fn h(x: &()) -> &'static () {
29 //~^ ERROR explicit lifetime required