fork/rust
git clone https://git.julia.blue/fork/rust
73528e339aa
1.40.0
1error[E0502]: cannot borrow `a` as mutable because it is also borrowed as immutable 2 --> $DIR/borrowck-bad-nested-calls-free.rs:25:17 3 | 4LL | add( 5 | --- immutable borrow later used by call 6LL | &*a, 7 | --- immutable borrow occurs here 8LL | rewrite(&mut a)); 9 | ^^^^^^ mutable borrow occurs here 10 11error[E0502]: cannot borrow `a` as mutable because it is also borrowed as immutable 12 --> $DIR/borrowck-bad-nested-calls-free.rs:32:17 13 | 14LL | add( 15 | --- immutable borrow later used by call 16LL | &*a, 17 | --- immutable borrow occurs here 18LL | rewrite(&mut a)); 19 | ^^^^^^ mutable borrow occurs here 20 21error: aborting due to 2 previous errors 22 23For more information about this error, try `rustc --explain E0502`.