1 // Check that when we test the supertrait we ensure consistent use of
2 // lifetime parameters. In this case, implementing T2<'a,'b> requires
3 // an impl of T1<'a>, but we have an impl of T1<'b>.
6 fn x(&self) -> &'x isize;
9 trait T2<'x, 'y> : T1<'x> {
10 fn y(&self) -> &'y isize;
18 impl<'a,'b> T1<'b> for S<'a, 'b> {
19 fn x(&self) -> &'b isize {
24 impl<'a,'b> T2<'a, 'b> for S<'a, 'b> { //~ ERROR cannot infer an appropriate lifetime
25 fn y(&self) -> &'b isize {