1 error[E0503]: cannot use `i` because it was mutably borrowed
2 --> $DIR/two-phase-allow-access-during-reservation.rs:26:19
4 LL | /*1*/ let p = &mut i; // (reservation of `i` starts here)
5 | ------ borrow of `i` occurs here
7 LL | /*2*/ let j = i; // OK: `i` is only reserved here
8 | ^ use of borrowed `i`
10 LL | /*3*/ *p += 1; // (mutable borrow of `i` starts here, since `p` is used)
11 | ------- borrow later used here
13 error[E0503]: cannot use `i` because it was mutably borrowed
14 --> $DIR/two-phase-allow-access-during-reservation.rs:31:19
16 LL | /*1*/ let p = &mut i; // (reservation of `i` starts here)
17 | ------ borrow of `i` occurs here
20 | ^ use of borrowed `i`
23 | ------- borrow later used here
25 error: aborting due to 2 previous errors
27 For more information about this error, try `rustc --explain E0503`.