@@ -3,7 +3,7 @@ error[E0382]: use of moved value: `a`
3
3
|
4
4
LL | let _x = a.x;
5
5
| -- value moved here
6
- 36 | //~^ value moved here
6
+ LL | //~^ value moved here
7
7
LL | let _y = a.y; //~ ERROR use of moved
8
8
| ^^ value used here after move
9
9
|
@@ -14,7 +14,7 @@ error[E0382]: use of moved value: `a`
14
14
|
15
15
LL | let _x = a.x;
16
16
| -- value moved here
17
- 45 | //~^ value moved here
17
+ LL | //~^ value moved here
18
18
LL | let _y = a.y; //~ ERROR use of moved
19
19
| ^^ value used here after move
20
20
|
@@ -25,7 +25,7 @@ error[E0382]: use of moved value: `a`
25
25
|
26
26
LL | let _x = a.x;
27
27
| -- value moved here
28
- 54 | //~^ value moved here
28
+ LL | //~^ value moved here
29
29
LL | let _y = &a.y; //~ ERROR use of moved
30
30
| ^^^ value used here after move
31
31
|
@@ -62,7 +62,7 @@ LL | let _x = &mut a.x;
62
62
| --- mutable borrow occurs here (via `a.x`)
63
63
LL | let _y = &a.y; //~ ERROR cannot borrow
64
64
| ^^^ immutable borrow occurs here (via `a.y`)
65
- 86 | //~^ immutable borrow occurs here (via `a.y`)
65
+ LL | //~^ immutable borrow occurs here (via `a.y`)
66
66
LL | }
67
67
| - mutable borrow ends here
68
68
@@ -73,7 +73,7 @@ LL | let _x = &a.x;
73
73
| --- immutable borrow occurs here (via `a.x`)
74
74
LL | let _y = &mut a.y; //~ ERROR cannot borrow
75
75
| ^^^ mutable borrow occurs here (via `a.y`)
76
- 93 | //~^ mutable borrow occurs here (via `a.y`)
76
+ LL | //~^ mutable borrow occurs here (via `a.y`)
77
77
LL | }
78
78
| - immutable borrow ends here
79
79
@@ -82,7 +82,7 @@ error[E0382]: use of collaterally moved value: `a.y`
82
82
|
83
83
LL | let _x = a.x.x;
84
84
| -- value moved here
85
- 99 | //~^ value moved here
85
+ LL | //~^ value moved here
86
86
LL | let _y = a.y; //~ ERROR use of collaterally moved
87
87
| ^^ value used here after move
88
88
|
@@ -93,7 +93,7 @@ error[E0382]: use of collaterally moved value: `a.y`
93
93
|
94
94
LL | let _x = a.x.x;
95
95
| -- value moved here
96
- 107 | //~^ value moved here
96
+ LL | //~^ value moved here
97
97
LL | let _y = a.y; //~ ERROR use of collaterally moved
98
98
| ^^ value used here after move
99
99
|
@@ -104,7 +104,7 @@ error[E0382]: use of collaterally moved value: `a.y`
104
104
|
105
105
LL | let _x = a.x.x;
106
106
| -- value moved here
107
- 115 | //~^ value moved here
107
+ LL | //~^ value moved here
108
108
LL | let _y = &a.y; //~ ERROR use of collaterally moved
109
109
| ^^^ value used here after move
110
110
|
@@ -115,7 +115,7 @@ error[E0505]: cannot move out of `a.y` because it is borrowed
115
115
|
116
116
LL | let _x = &a.x.x;
117
117
| ----- borrow of `a.x.x` occurs here
118
- 123 | //~^ borrow of `a.x.x` occurs here
118
+ LL | //~^ borrow of `a.x.x` occurs here
119
119
LL | let _y = a.y;
120
120
| ^^ move out of `a.y` occurs here
121
121
@@ -140,10 +140,10 @@ error[E0502]: cannot borrow `a.y` as immutable because `a.x.x` is also borrowed
140
140
|
141
141
LL | let _x = &mut a.x.x;
142
142
| ----- mutable borrow occurs here
143
- 146 | //~^ mutable borrow occurs here
143
+ LL | //~^ mutable borrow occurs here
144
144
LL | let _y = &a.y; //~ ERROR cannot borrow
145
145
| ^^^ immutable borrow occurs here
146
- 148 | //~^ immutable borrow occurs here
146
+ LL | //~^ immutable borrow occurs here
147
147
LL | }
148
148
| - mutable borrow ends here
149
149
@@ -152,10 +152,10 @@ error[E0502]: cannot borrow `a.y` as mutable because `a.x.x` is also borrowed as
152
152
|
153
153
LL | let _x = &a.x.x;
154
154
| ----- immutable borrow occurs here
155
- 154 | //~^ immutable borrow occurs here
155
+ LL | //~^ immutable borrow occurs here
156
156
LL | let _y = &mut a.y; //~ ERROR cannot borrow
157
157
| ^^^ mutable borrow occurs here
158
- 156 | //~^ mutable borrow occurs here
158
+ LL | //~^ mutable borrow occurs here
159
159
LL | }
160
160
| - immutable borrow ends here
161
161
0 commit comments