2017-11-06 06:26:34 -06:00
|
|
|
error[E0502]: cannot borrow `*map` as mutable because it is also borrowed as immutable (Ast)
|
|
|
|
--> $DIR/get_default.rs:33:17
|
|
|
|
|
|
|
|
|
28 | match map.get() {
|
|
|
|
| --- immutable borrow occurs here
|
|
|
|
...
|
|
|
|
33 | map.set(String::new()); // Just AST errors here
|
|
|
|
| ^^^ mutable borrow occurs here
|
|
|
|
...
|
2017-11-20 06:13:27 -06:00
|
|
|
38 | }
|
2017-11-06 06:26:34 -06:00
|
|
|
| - immutable borrow ends here
|
|
|
|
|
|
|
|
error[E0502]: cannot borrow `*map` as mutable because it is also borrowed as immutable (Ast)
|
2017-11-20 06:13:27 -06:00
|
|
|
--> $DIR/get_default.rs:44:17
|
2017-11-06 06:26:34 -06:00
|
|
|
|
|
2017-11-20 06:13:27 -06:00
|
|
|
42 | match map.get() {
|
2017-11-06 06:26:34 -06:00
|
|
|
| --- immutable borrow occurs here
|
2017-11-20 06:13:27 -06:00
|
|
|
43 | Some(v) => {
|
|
|
|
44 | map.set(String::new()); // Both AST and MIR error here
|
2017-11-06 06:26:34 -06:00
|
|
|
| ^^^ mutable borrow occurs here
|
|
|
|
...
|
2017-11-20 06:13:27 -06:00
|
|
|
55 | }
|
2017-11-06 06:26:34 -06:00
|
|
|
| - immutable borrow ends here
|
|
|
|
|
|
|
|
error[E0502]: cannot borrow `*map` as mutable because it is also borrowed as immutable (Ast)
|
2017-11-20 06:13:27 -06:00
|
|
|
--> $DIR/get_default.rs:50:17
|
2017-11-06 06:26:34 -06:00
|
|
|
|
|
2017-11-20 06:13:27 -06:00
|
|
|
42 | match map.get() {
|
2017-11-06 06:26:34 -06:00
|
|
|
| --- immutable borrow occurs here
|
|
|
|
...
|
2017-11-20 06:13:27 -06:00
|
|
|
50 | map.set(String::new()); // Just AST errors here
|
2017-11-06 06:26:34 -06:00
|
|
|
| ^^^ mutable borrow occurs here
|
|
|
|
...
|
2017-11-20 06:13:27 -06:00
|
|
|
55 | }
|
2017-11-06 06:26:34 -06:00
|
|
|
| - immutable borrow ends here
|
|
|
|
|
2017-11-16 09:52:04 -06:00
|
|
|
error[E0502]: cannot borrow `*map` as mutable because it is also borrowed as immutable (Mir)
|
2017-11-20 06:13:27 -06:00
|
|
|
--> $DIR/get_default.rs:44:17
|
2017-11-06 06:26:34 -06:00
|
|
|
|
|
2017-11-20 06:13:27 -06:00
|
|
|
42 | match map.get() {
|
2017-11-06 06:26:34 -06:00
|
|
|
| --- immutable borrow occurs here
|
2017-11-20 06:13:27 -06:00
|
|
|
43 | Some(v) => {
|
|
|
|
44 | map.set(String::new()); // Both AST and MIR error here
|
2017-11-06 06:26:34 -06:00
|
|
|
| ^^^ mutable borrow occurs here
|
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|