1
Fork 0

Do not set up wrong span for adjustments

This commit is contained in:
Michael Goulet 2023-06-22 20:30:23 +00:00
parent 05b82e551e
commit fe870424a7
159 changed files with 364 additions and 433 deletions

View file

@ -2,7 +2,7 @@ error[E0502]: cannot borrow `foo` as mutable because it is also borrowed as immu
--> $DIR/borrowck-issue-49631.rs:20:9
|
LL | while let Some(Ok(string)) = foo.get() {
| --------- immutable borrow occurs here
| --- immutable borrow occurs here
LL | foo.mutate();
| ^^^^^^^^^^^^ mutable borrow occurs here
LL |