1 error[E0502]: cannot borrow `x` as immutable because it is also borrowed as mutable
2 --> $DIR/two-phase-activation-sharing-interference.rs:28:15
5 | ------ mutable borrow occurs here
6 LL | { let z = &x; read(z); }
7 | ^^ immutable borrow occurs here
10 | ------- mutable 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:36:13
16 | ------ mutable borrow occurs here
18 | ^^ immutable borrow occurs here
21 | ------- mutable 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:47:13
27 | ------ mutable borrow occurs here
29 | ^^ immutable borrow occurs here
32 | ------- mutable 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:58:14
38 | ------ mutable borrow occurs here
40 | ^^ immutable borrow occurs here
43 | ------- mutable borrow later used here
45 error: aborting due to 4 previous errors
47 For more information about this error, try `rustc --explain E0502`.