1 error[E0502]: cannot borrow `a` as mutable because it is also borrowed as immutable
2 --> $DIR/borrowck-bad-nested-calls-free.rs:25:17
5 | --- immutable borrow later used by call
7 | --- immutable borrow occurs here
9 | ^^^^^^ mutable borrow occurs here
11 error[E0502]: cannot borrow `a` as mutable because it is also borrowed as immutable
12 --> $DIR/borrowck-bad-nested-calls-free.rs:32:17
15 | --- immutable borrow later used by call
17 | --- immutable borrow occurs here
18 LL | rewrite(&mut a));
19 | ^^^^^^ mutable borrow occurs here
21 error: aborting due to 2 previous errors
23 For more information about this error, try `rustc --explain E0502`.