1 error[E0502]: cannot borrow `x` as immutable because it is also borrowed as mutable
2 --> $DIR/two-phase-activation-sharing-interference.rs:42:15
5 | ------ mutable borrow occurs here
6 LL | { let z = &x; read(z); }
7 | ^^ immutable borrow occurs here
8 LL | //[nll_target]~^ ERROR cannot borrow `x` as immutable because it is also borrowed as mutable
10 | ------- borrow later used here
12 error[E0502]: cannot borrow `x` as immutable because it is also borrowed as mutable
13 --> $DIR/two-phase-activation-sharing-interference.rs:50:13
16 | ------ mutable borrow occurs here
18 | ^^ immutable borrow occurs here
19 LL | //[nll_target]~^ ERROR cannot borrow `x` as immutable because it is also borrowed as mutable
21 | ------- borrow later used here
23 error[E0502]: cannot borrow `x` as immutable because it is also borrowed as mutable
24 --> $DIR/two-phase-activation-sharing-interference.rs:61:13
27 | ------ mutable borrow occurs here
29 | ^^ immutable borrow occurs here
32 | ------- borrow later used here
34 error[E0502]: cannot borrow `x` as immutable because it is also borrowed as mutable
35 --> $DIR/two-phase-activation-sharing-interference.rs:72:14
38 | ------ mutable borrow occurs here
40 | ^^ immutable borrow occurs here
41 LL | //[nll_target]~^ ERROR cannot borrow `x` as immutable because it is also borrowed as mutable
43 | ------- borrow later used here
45 error: aborting due to 4 previous errors
47 For more information about this error, try `rustc --explain E0502`.