]>
Commit | Line | Data |
---|---|---|
9fa01778 | 1 | error[E0491]: in type `&'a WithHrAssoc<TheType<'b>>`, reference has a longer lifetime than the data it references |
e1599b0c | 2 | --> $DIR/regions-outlives-projection-container-hrtb.rs:30:12 |
9fa01778 XL |
3 | | |
4 | LL | let _: &'a WithHrAssoc<TheType<'b>> = loop { }; | |
5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
6 | | | |
c295e0f8 | 7 | note: the pointer is valid for the lifetime `'a` as defined here |
e1599b0c | 8 | --> $DIR/regions-outlives-projection-container-hrtb.rs:27:15 |
9fa01778 XL |
9 | | |
10 | LL | fn with_assoc<'a,'b>() { | |
11 | | ^^ | |
c295e0f8 | 12 | note: but the referenced data is only valid for the lifetime `'b` as defined here |
e1599b0c | 13 | --> $DIR/regions-outlives-projection-container-hrtb.rs:27:18 |
9fa01778 XL |
14 | | |
15 | LL | fn with_assoc<'a,'b>() { | |
16 | | ^^ | |
17 | ||
18 | error[E0491]: in type `&'a WithHrAssocSub<TheType<'b>>`, reference has a longer lifetime than the data it references | |
e1599b0c | 19 | --> $DIR/regions-outlives-projection-container-hrtb.rs:50:12 |
9fa01778 XL |
20 | | |
21 | LL | let _: &'a WithHrAssocSub<TheType<'b>> = loop { }; | |
22 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
23 | | | |
c295e0f8 | 24 | note: the pointer is valid for the lifetime `'a` as defined here |
e1599b0c | 25 | --> $DIR/regions-outlives-projection-container-hrtb.rs:46:19 |
9fa01778 XL |
26 | | |
27 | LL | fn with_assoc_sub<'a,'b>() { | |
28 | | ^^ | |
c295e0f8 | 29 | note: but the referenced data is only valid for the lifetime `'b` as defined here |
e1599b0c | 30 | --> $DIR/regions-outlives-projection-container-hrtb.rs:46:22 |
9fa01778 XL |
31 | | |
32 | LL | fn with_assoc_sub<'a,'b>() { | |
33 | | ^^ | |
34 | ||
35 | error: aborting due to 2 previous errors | |
36 | ||
37 | For more information about this error, try `rustc --explain E0491`. |