1 // Check projection of an associated type out of a higher-ranked
2 // trait-bound in the context of a function body.
7 fn get(&self, t: T) -> Self::A;
10 fn foo<'a, I : for<'x> Foo<&'x isize>>(
11 x: <I as Foo<&'a isize>>::A)
16 fn bar<'a, 'b, I : for<'x> Foo<&'x isize>>(
17 x: <I as Foo<&'a isize>>::A,
18 y: <I as Foo<&'b isize>>::A,
21 // x and y here have two distinct lifetimes:
22 let z: I::A = if cond { x } else { y };
23 //~^ ERROR lifetime mismatch