|
1 | 1 | error[E0491]: in type `&'a WithAssoc<TheType<'b>>`, reference has a longer lifetime than the data it references
|
2 |
| - --> $DIR/regions-outlives-projection-container.rs:40:13 |
| 2 | + --> $DIR/regions-outlives-projection-container.rs:36:13 |
3 | 3 | |
|
4 | 4 | LL | let _x: &'a WithAssoc<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.rs:32:15 |
| 7 | +note: the pointer is valid for the lifetime 'a as defined on the function body at 28:15 |
| 8 | + --> $DIR/regions-outlives-projection-container.rs:28: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.rs:32:18 |
| 12 | +note: but the referenced data is only valid for the lifetime 'b as defined on the function body at 28:18 |
| 13 | + --> $DIR/regions-outlives-projection-container.rs:28:18 |
14 | 14 | |
|
15 | 15 | LL | fn with_assoc<'a,'b>() {
|
16 | 16 | | ^^
|
17 | 17 |
|
18 | 18 | error[E0491]: in type `&'a WithoutAssoc<TheType<'b>>`, reference has a longer lifetime than the data it references
|
19 |
| - --> $DIR/regions-outlives-projection-container.rs:58:13 |
| 19 | + --> $DIR/regions-outlives-projection-container.rs:54:13 |
20 | 20 | |
|
21 | 21 | LL | let _x: &'a WithoutAssoc<TheType<'b>> = loop { };
|
22 | 22 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
23 | 23 | |
|
24 |
| -note: the pointer is valid for the lifetime 'a as defined on the function body at 54:18 |
25 |
| - --> $DIR/regions-outlives-projection-container.rs:54:18 |
| 24 | +note: the pointer is valid for the lifetime 'a as defined on the function body at 50:18 |
| 25 | + --> $DIR/regions-outlives-projection-container.rs:50:18 |
26 | 26 | |
|
27 | 27 | LL | fn without_assoc<'a,'b>() {
|
28 | 28 | | ^^
|
29 |
| -note: but the referenced data is only valid for the lifetime 'b as defined on the function body at 54:21 |
30 |
| - --> $DIR/regions-outlives-projection-container.rs:54:21 |
| 29 | +note: but the referenced data is only valid for the lifetime 'b as defined on the function body at 50:21 |
| 30 | + --> $DIR/regions-outlives-projection-container.rs:50:21 |
31 | 31 | |
|
32 | 32 | LL | fn without_assoc<'a,'b>() {
|
33 | 33 | | ^^
|
34 | 34 |
|
35 | 35 | error[E0491]: in type `&'a WithAssoc<TheType<'b>>`, reference has a longer lifetime than the data it references
|
36 |
| - --> $DIR/regions-outlives-projection-container.rs:67:12 |
| 36 | + --> $DIR/regions-outlives-projection-container.rs:63:12 |
37 | 37 | |
|
38 | 38 | LL | call::<&'a WithAssoc<TheType<'b>>>();
|
39 | 39 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
40 | 40 | |
|
41 |
| -note: the pointer is valid for the lifetime 'a as defined on the function body at 62:20 |
42 |
| - --> $DIR/regions-outlives-projection-container.rs:62:20 |
| 41 | +note: the pointer is valid for the lifetime 'a as defined on the function body at 58:20 |
| 42 | + --> $DIR/regions-outlives-projection-container.rs:58:20 |
43 | 43 | |
|
44 | 44 | LL | fn call_with_assoc<'a,'b>() {
|
45 | 45 | | ^^
|
46 |
| -note: but the referenced data is only valid for the lifetime 'b as defined on the function body at 62:23 |
47 |
| - --> $DIR/regions-outlives-projection-container.rs:62:23 |
| 46 | +note: but the referenced data is only valid for the lifetime 'b as defined on the function body at 58:23 |
| 47 | + --> $DIR/regions-outlives-projection-container.rs:58:23 |
48 | 48 | |
|
49 | 49 | LL | fn call_with_assoc<'a,'b>() {
|
50 | 50 | | ^^
|
51 | 51 |
|
52 | 52 | error[E0491]: in type `&'a WithoutAssoc<TheType<'b>>`, reference has a longer lifetime than the data it references
|
53 |
| - --> $DIR/regions-outlives-projection-container.rs:74:12 |
| 53 | + --> $DIR/regions-outlives-projection-container.rs:70:12 |
54 | 54 | |
|
55 | 55 | LL | call::<&'a WithoutAssoc<TheType<'b>>>();
|
56 | 56 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
57 | 57 | |
|
58 |
| -note: the pointer is valid for the lifetime 'a as defined on the function body at 71:23 |
59 |
| - --> $DIR/regions-outlives-projection-container.rs:71:23 |
| 58 | +note: the pointer is valid for the lifetime 'a as defined on the function body at 67:23 |
| 59 | + --> $DIR/regions-outlives-projection-container.rs:67:23 |
60 | 60 | |
|
61 | 61 | LL | fn call_without_assoc<'a,'b>() {
|
62 | 62 | | ^^
|
63 |
| -note: but the referenced data is only valid for the lifetime 'b as defined on the function body at 71:26 |
64 |
| - --> $DIR/regions-outlives-projection-container.rs:71:26 |
| 63 | +note: but the referenced data is only valid for the lifetime 'b as defined on the function body at 67:26 |
| 64 | + --> $DIR/regions-outlives-projection-container.rs:67:26 |
65 | 65 | |
|
66 | 66 | LL | fn call_without_assoc<'a,'b>() {
|
67 | 67 | | ^^
|
|
0 commit comments