Test fixes for the change of error message for issue #54015
This commit is contained in:
parent
d5ae6f7870
commit
44b3674d8e
15 changed files with 22 additions and 22 deletions
|
@ -7,7 +7,7 @@ LL | foo.mutate();
|
|||
| ^^^^^^^^^^^^ mutable borrow occurs here
|
||||
LL | //~^ ERROR cannot borrow `foo` as mutable
|
||||
LL | println!("foo={:?}", *string);
|
||||
| ------- borrow used here in later iteration of loop
|
||||
| ------- borrow used here, in later iteration of loop
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue