|
1 | 1 | error[E0491]: in type `&'a WithHrAssoc<TheType<'b>>`, reference has a longer lifetime than the data it references
|
2 |
| - --> $DIR/regions-outlives-projection-container-hrtb.rs:35:12 |
| 2 | + --> $DIR/regions-outlives-projection-container-hrtb.rs:30:12 |
3 | 3 | |
|
4 | 4 | LL | let _: &'a WithHrAssoc<TheType<'b>> = loop { };
|
5 | 5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
6 | 6 | |
|
7 |
| -note: the pointer is valid for the lifetime 'a as defined on the function body at 32:15 |
8 |
| - --> $DIR/regions-outlives-projection-container-hrtb.rs:32:15 |
| 7 | +note: the pointer is valid for the lifetime 'a as defined on the function body at 27:15 |
| 8 | + --> $DIR/regions-outlives-projection-container-hrtb.rs:27:15 |
9 | 9 | |
|
10 | 10 | LL | fn with_assoc<'a,'b>() {
|
11 | 11 | | ^^
|
12 |
| -note: but the referenced data is only valid for the lifetime 'b as defined on the function body at 32:18 |
13 |
| - --> $DIR/regions-outlives-projection-container-hrtb.rs:32:18 |
| 12 | +note: but the referenced data is only valid for the lifetime 'b as defined on the function body at 27:18 |
| 13 | + --> $DIR/regions-outlives-projection-container-hrtb.rs:27:18 |
14 | 14 | |
|
15 | 15 | LL | fn with_assoc<'a,'b>() {
|
16 | 16 | | ^^
|
17 | 17 |
|
18 | 18 | error[E0491]: in type `&'a WithHrAssocSub<TheType<'b>>`, reference has a longer lifetime than the data it references
|
19 |
| - --> $DIR/regions-outlives-projection-container-hrtb.rs:57:12 |
| 19 | + --> $DIR/regions-outlives-projection-container-hrtb.rs:50:12 |
20 | 20 | |
|
21 | 21 | LL | let _: &'a WithHrAssocSub<TheType<'b>> = loop { };
|
22 | 22 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
23 | 23 | |
|
24 |
| -note: the pointer is valid for the lifetime 'a as defined on the function body at 53:19 |
25 |
| - --> $DIR/regions-outlives-projection-container-hrtb.rs:53:19 |
| 24 | +note: the pointer is valid for the lifetime 'a as defined on the function body at 46:19 |
| 25 | + --> $DIR/regions-outlives-projection-container-hrtb.rs:46:19 |
26 | 26 | |
|
27 | 27 | LL | fn with_assoc_sub<'a,'b>() {
|
28 | 28 | | ^^
|
29 |
| -note: but the referenced data is only valid for the lifetime 'b as defined on the function body at 53:22 |
30 |
| - --> $DIR/regions-outlives-projection-container-hrtb.rs:53:22 |
| 29 | +note: but the referenced data is only valid for the lifetime 'b as defined on the function body at 46:22 |
| 30 | + --> $DIR/regions-outlives-projection-container-hrtb.rs:46:22 |
31 | 31 | |
|
32 | 32 | LL | fn with_assoc_sub<'a,'b>() {
|
33 | 33 | | ^^
|
|
0 commit comments