]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/borrowck/two-phase-sneaky.nll.stderr
New upstream version 1.31.0~beta.4+dfsg1
[rustc.git] / src / test / ui / borrowck / two-phase-sneaky.nll.stderr
index 26a6271bbdea20a2e7daba306cb5c750831e4fd2..4847f6cec86c9936d68dc45a6f850723967b4118 100644 (file)
@@ -1,19 +1,13 @@
 error[E0499]: cannot borrow `v` as mutable more than once at a time
   --> $DIR/two-phase-sneaky.rs:22:9
    |
-LL |       v[0].push_str({
-   |       -
-   |       |
-   |  _____first mutable borrow occurs here
-   | |
-LL | |
-LL | |         v.push(format!("foo"));
-   | |         ^ second mutable borrow occurs here
-LL | |         //~^   ERROR cannot borrow `v` as mutable more than once at a time [E0499]
-LL | |
-LL | |         "World!"
-LL | |     });
-   | |______- borrow later used here
+LL |     v[0].push_str({
+   |     -    -------- first borrow later used by call
+   |     |
+   |     first mutable borrow occurs here
+LL | 
+LL |         v.push(format!("foo"));
+   |         ^ second mutable borrow occurs here
 
 error: aborting due to previous error