1 warning: not reporting region error due to nll
2 --> $DIR/associated-types-project-from-hrtb-in-fn-body.rs:32:12
4 LL | let z: I::A = if cond { x } else { y };
7 error: unsatisfied lifetime constraints
8 --> $DIR/associated-types-project-from-hrtb-in-fn-body.rs:32:29
10 LL | fn bar<'a, 'b, I : for<'x> Foo<&'x isize>>(
11 | -- -- lifetime `'b` defined here
13 | lifetime `'a` defined here
15 LL | let z: I::A = if cond { x } else { y };
16 | ^ assignment requires that `'a` must outlive `'b`
18 error: unsatisfied lifetime constraints
19 --> $DIR/associated-types-project-from-hrtb-in-fn-body.rs:32:40
21 LL | fn bar<'a, 'b, I : for<'x> Foo<&'x isize>>(
22 | -- -- lifetime `'b` defined here
24 | lifetime `'a` defined here
26 LL | let z: I::A = if cond { x } else { y };
27 | ^ assignment requires that `'b` must outlive `'a`
29 error: aborting due to 2 previous errors