]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/regions/regions-adjusted-lvalue-op.nll.stderr
New upstream version 1.31.0~beta.4+dfsg1
[rustc.git] / src / test / ui / regions / regions-adjusted-lvalue-op.nll.stderr
index f342155c8b1410b403b86e9e27f5ef569baa9c92..fa963714849b66f9836b2544ac15e62800682ccf 100644 (file)
@@ -2,21 +2,19 @@ error[E0502]: cannot borrow `v` as immutable because it is also borrowed as muta
   --> $DIR/regions-adjusted-lvalue-op.rs:24:16
    |
 LL |     v[0].oh_no(&v); //~ ERROR cannot borrow `v` as immutable because
-   |     -----------^^-
-   |     |          |
-   |     |          immutable borrow occurs here
+   |     -    ----- ^^ immutable borrow occurs here
+   |     |    |
+   |     |    mutable borrow later used by call
    |     mutable borrow occurs here
-   |     borrow later used here
 
 error[E0502]: cannot borrow `v` as immutable because it is also borrowed as mutable
   --> $DIR/regions-adjusted-lvalue-op.rs:25:16
    |
 LL |     (*v).oh_no(&v); //~ ERROR cannot borrow `v` as immutable because
-   |     -----------^^-
-   |     | |        |
-   |     | |        immutable borrow occurs here
-   |     | mutable borrow occurs here
-   |     borrow later used here
+   |       -  ----- ^^ immutable borrow occurs here
+   |       |  |
+   |       |  mutable borrow later used by call
+   |       mutable borrow occurs here
 
 error: aborting due to 2 previous errors