fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error[E0502]: cannot borrow `*map` as mutable because it is also borrowed as immutable 2 --> $DIR/get_default.rs:32:17 3 | 4LL | match map.get() { 5 | --- immutable borrow occurs here 6LL | Some(v) => { 7LL | map.set(String::new()); // Both AST and MIR error here 8 | ^^^ mutable borrow occurs here 9LL | 10LL | return v; 11 | - immutable borrow later used here 12 13error: aborting due to previous error 14 15For more information about this error, try `rustc --explain E0502`.