10 impl Y for A<'static> {
16 // This uses <A<'a> as Y>::X, but `A<'a>` does not implement `Y`.
17 A::<'a>::X..=A::<'static>::X => (), //~ ERROR lifetime may not live long enough
24 // This uses <A<'a> as Y>::X, but `A<'a>` does not implement `Y`.
25 A::<'static>::X..=A::<'a>::X => (), //~ ERROR lifetime may not live long enough