1 error: lifetime may not live long enough
2 --> $DIR/regions-outlives-projection-container.rs:36:13
4 LL | fn with_assoc<'a,'b>() {
5 | -- -- lifetime `'b` defined here
7 | lifetime `'a` defined here
9 LL | let _x: &'a WithAssoc<TheType<'b>> = loop { };
10 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ type annotation requires that `'b` must outlive `'a`
12 = help: consider adding the following bound: `'b: 'a`
14 error: lifetime may not live long enough
15 --> $DIR/regions-outlives-projection-container.rs:54:13
17 LL | fn without_assoc<'a,'b>() {
18 | -- -- lifetime `'b` defined here
20 | lifetime `'a` defined here
22 LL | let _x: &'a WithoutAssoc<TheType<'b>> = loop { };
23 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type annotation requires that `'b` must outlive `'a`
25 = help: consider adding the following bound: `'b: 'a`
27 error: lifetime may not live long enough
28 --> $DIR/regions-outlives-projection-container.rs:63:5
30 LL | fn call_with_assoc<'a,'b>() {
31 | -- -- lifetime `'b` defined here
33 | lifetime `'a` defined here
35 LL | call::<&'a WithAssoc<TheType<'b>>>();
36 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'b` must outlive `'a`
38 = help: consider adding the following bound: `'b: 'a`
40 error: lifetime may not live long enough
41 --> $DIR/regions-outlives-projection-container.rs:70:5
43 LL | fn call_without_assoc<'a,'b>() {
44 | -- -- lifetime `'b` defined here
46 | lifetime `'a` defined here
48 LL | call::<&'a WithoutAssoc<TheType<'b>>>();
49 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'b` must outlive `'a`
51 = help: consider adding the following bound: `'b: 'a`
53 error: aborting due to 4 previous errors