]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/borrowck/borrowck-mut-borrow-linear-errors.stderr
New upstream version 1.57.0+dfsg1
[rustc.git] / src / test / ui / borrowck / borrowck-mut-borrow-linear-errors.stderr
index a4090777939029b5b725667642285ed116a04e48..15ac737606d66ce03e8bae889d2126c8b454b21d 100644 (file)
@@ -5,8 +5,9 @@ LL |             1 => { addr.push(&mut x); }
    |                              ^^^^^^ second mutable borrow occurs here
 LL |             2 => { addr.push(&mut x); }
 LL |             _ => { addr.push(&mut x); }
-   |                    ----      ------ first mutable borrow occurs here
-   |                    |
+   |                    -----------------
+   |                    |         |
+   |                    |         first mutable borrow occurs here
    |                    first borrow later used here
 
 error[E0499]: cannot borrow `x` as mutable more than once at a time
@@ -15,8 +16,9 @@ error[E0499]: cannot borrow `x` as mutable more than once at a time
 LL |             2 => { addr.push(&mut x); }
    |                              ^^^^^^ second mutable borrow occurs here
 LL |             _ => { addr.push(&mut x); }
-   |                    ----      ------ first mutable borrow occurs here
-   |                    |
+   |                    -----------------
+   |                    |         |
+   |                    |         first mutable borrow occurs here
    |                    first borrow later used here
 
 error[E0499]: cannot borrow `x` as mutable more than once at a time