@@ -3,7 +3,7 @@ error[E0382]: use of moved value: `a`
33 |
44LL | let _x = a.x;
55 | -- value moved here
6- 36 | //~^ value moved here
6+ LL | //~^ value moved here
77LL | let _y = a.y; //~ ERROR use of moved
88 | ^^ value used here after move
99 |
@@ -14,7 +14,7 @@ error[E0382]: use of moved value: `a`
1414 |
1515LL | let _x = a.x;
1616 | -- value moved here
17- 45 | //~^ value moved here
17+ LL | //~^ value moved here
1818LL | let _y = a.y; //~ ERROR use of moved
1919 | ^^ value used here after move
2020 |
@@ -25,7 +25,7 @@ error[E0382]: use of moved value: `a`
2525 |
2626LL | let _x = a.x;
2727 | -- value moved here
28- 54 | //~^ value moved here
28+ LL | //~^ value moved here
2929LL | let _y = &a.y; //~ ERROR use of moved
3030 | ^^^ value used here after move
3131 |
@@ -62,7 +62,7 @@ LL | let _x = &mut a.x;
6262 | --- mutable borrow occurs here (via `a.x`)
6363LL | let _y = &a.y; //~ ERROR cannot borrow
6464 | ^^^ 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`)
6666LL | }
6767 | - mutable borrow ends here
6868
@@ -73,7 +73,7 @@ LL | let _x = &a.x;
7373 | --- immutable borrow occurs here (via `a.x`)
7474LL | let _y = &mut a.y; //~ ERROR cannot borrow
7575 | ^^^ 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`)
7777LL | }
7878 | - immutable borrow ends here
7979
@@ -82,7 +82,7 @@ error[E0382]: use of collaterally moved value: `a.y`
8282 |
8383LL | let _x = a.x.x;
8484 | -- value moved here
85- 99 | //~^ value moved here
85+ LL | //~^ value moved here
8686LL | let _y = a.y; //~ ERROR use of collaterally moved
8787 | ^^ value used here after move
8888 |
@@ -93,7 +93,7 @@ error[E0382]: use of collaterally moved value: `a.y`
9393 |
9494LL | let _x = a.x.x;
9595 | -- value moved here
96- 107 | //~^ value moved here
96+ LL | //~^ value moved here
9797LL | let _y = a.y; //~ ERROR use of collaterally moved
9898 | ^^ value used here after move
9999 |
@@ -104,7 +104,7 @@ error[E0382]: use of collaterally moved value: `a.y`
104104 |
105105LL | let _x = a.x.x;
106106 | -- value moved here
107- 115 | //~^ value moved here
107+ LL | //~^ value moved here
108108LL | let _y = &a.y; //~ ERROR use of collaterally moved
109109 | ^^^ value used here after move
110110 |
@@ -115,7 +115,7 @@ error[E0505]: cannot move out of `a.y` because it is borrowed
115115 |
116116LL | let _x = &a.x.x;
117117 | ----- 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
119119LL | let _y = a.y;
120120 | ^^ move out of `a.y` occurs here
121121
@@ -140,10 +140,10 @@ error[E0502]: cannot borrow `a.y` as immutable because `a.x.x` is also borrowed
140140 |
141141LL | let _x = &mut a.x.x;
142142 | ----- mutable borrow occurs here
143- 146 | //~^ mutable borrow occurs here
143+ LL | //~^ mutable borrow occurs here
144144LL | let _y = &a.y; //~ ERROR cannot borrow
145145 | ^^^ immutable borrow occurs here
146- 148 | //~^ immutable borrow occurs here
146+ LL | //~^ immutable borrow occurs here
147147LL | }
148148 | - mutable borrow ends here
149149
@@ -152,10 +152,10 @@ error[E0502]: cannot borrow `a.y` as mutable because `a.x.x` is also borrowed as
152152 |
153153LL | let _x = &a.x.x;
154154 | ----- immutable borrow occurs here
155- 154 | //~^ immutable borrow occurs here
155+ LL | //~^ immutable borrow occurs here
156156LL | let _y = &mut a.y; //~ ERROR cannot borrow
157157 | ^^^ mutable borrow occurs here
158- 156 | //~^ mutable borrow occurs here
158+ LL | //~^ mutable borrow occurs here
159159LL | }
160160 | - immutable borrow ends here
161161
0 commit comments