Skip to content

Commit c0eab36

Browse files
committed
Bless output of test nll/loan_ends_mid_block_pair.rs for Polonius, again
Fixing assignments to projections made the Polonius output exactly the same as the NLL one.
1 parent c7f9a71 commit c0eab36

File tree

1 file changed

+1
-24
lines changed

1 file changed

+1
-24
lines changed

src/test/ui/nll/loan_ends_mid_block_pair.polonius.stderr

+1-24
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,6 @@ LL | data.0 = 'e';
1010
LL | capitalize(c);
1111
| - borrow later used here
1212

13-
error[E0506]: cannot assign to `data.0` because it is borrowed
14-
--> $DIR/loan_ends_mid_block_pair.rs:14:5
15-
|
16-
LL | let c = &mut data.0;
17-
| ----------- borrow of `data.0` occurs here
18-
...
19-
LL | data.0 = 'f';
20-
| ^^^^^^^^^^^^ assignment to borrowed `data.0` occurs here
21-
LL | data.0 = 'g';
22-
LL | capitalize(c);
23-
| - borrow later used here
24-
25-
error[E0506]: cannot assign to `data.0` because it is borrowed
26-
--> $DIR/loan_ends_mid_block_pair.rs:15:5
27-
|
28-
LL | let c = &mut data.0;
29-
| ----------- borrow of `data.0` occurs here
30-
...
31-
LL | data.0 = 'g';
32-
| ^^^^^^^^^^^^ assignment to borrowed `data.0` occurs here
33-
LL | capitalize(c);
34-
| - borrow later used here
35-
36-
error: aborting due to 3 previous errors
13+
error: aborting due to previous error
3714

3815
For more information about this error, try `rustc --explain E0506`.

0 commit comments

Comments
 (0)