1 #![feature(generic_associated_types)]
5 fn m(&self) -> Self::Y<'_>;
11 fn m(&self) -> Self::Y<'_> {
16 fn f(x: &impl for<'a> X<Y<'a> = &'a ()>) -> &'static () {
18 //~^ ERROR explicit lifetime required
21 fn g<T: for<'a> X<Y<'a> = &'a ()>>(x: &T) -> &'static () {
23 //~^ ERROR explicit lifetime required
26 fn h(x: &()) -> &'static () {
28 //~^ ERROR explicit lifetime required