fork/rust
git clone https://git.julia.blue/fork/rust
f3e1a954d2e
1.41.1
1error[E0502]: cannot borrow `x` as immutable because it is also borrowed as mutable 2 --> $DIR/two-phase-activation-sharing-interference.rs:30:15 3 | 4LL | let y = &mut x; 5 | ------ mutable borrow occurs here 6LL | { let z = &x; read(z); } 7 | ^^ immutable borrow occurs here 8LL | 9LL | *y += 1; 10 | ------- mutable borrow later used here 11 12error[E0502]: cannot borrow `x` as immutable because it is also borrowed as mutable 13 --> $DIR/two-phase-activation-sharing-interference.rs:38:13 14 | 15LL | let y = &mut x; 16 | ------ mutable borrow occurs here 17LL | let z = &x; 18 | ^^ immutable borrow occurs here 19LL | 20LL | *y += 1; 21 | ------- mutable borrow later used here 22 23error[E0502]: cannot borrow `x` as immutable because it is also borrowed as mutable 24 --> $DIR/two-phase-activation-sharing-interference.rs:49:13 25 | 26LL | let y = &mut x; 27 | ------ mutable borrow occurs here 28LL | let z = &x; 29 | ^^ immutable borrow occurs here 30... 31LL | *y += 1; 32 | ------- mutable borrow later used here 33 34error[E0502]: cannot borrow `x` as immutable because it is also borrowed as mutable 35 --> $DIR/two-phase-activation-sharing-interference.rs:60:14 36 | 37LL | let y = &mut x; 38 | ------ mutable borrow occurs here 39LL | let _z = &x; 40 | ^^ immutable borrow occurs here 41LL | 42LL | *y += 1; 43 | ------- mutable borrow later used here 44 45error: aborting due to 4 previous errors 46 47For more information about this error, try `rustc --explain E0502`.