]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/borrowck/two-phase-allow-access-during-reservation.nll_target.stderr
New upstream version 1.53.0+dfsg1
[rustc.git] / src / test / ui / borrowck / two-phase-allow-access-during-reservation.nll_target.stderr
index 9f31c3f87c37dca2a0bc4e3b4cc0d24372413039..bba3393fc140518c279b198907c27ad82a86079b 100644 (file)
@@ -1,5 +1,5 @@
 error[E0503]: cannot use `i` because it was mutably borrowed
-  --> $DIR/two-phase-allow-access-during-reservation.rs:30:19
+  --> $DIR/two-phase-allow-access-during-reservation.rs:28:19
    |
 LL |     /*1*/ let p = &mut i; // (reservation of `i` starts here)
    |                   ------ borrow of `i` occurs here
@@ -11,7 +11,7 @@ LL |     /*3*/ *p += 1;        // (mutable borrow of `i` starts here, since `p`
    |           ------- borrow later used here
 
 error[E0503]: cannot use `i` because it was mutably borrowed
-  --> $DIR/two-phase-allow-access-during-reservation.rs:35:19
+  --> $DIR/two-phase-allow-access-during-reservation.rs:33:19
    |
 LL |     /*1*/ let p = &mut i; // (reservation of `i` starts here)
    |                   ------ borrow of `i` occurs here