1 error[E0596]: cannot borrow data in an index of `HashMap<&str, String>` as mutable
2 --> $DIR/index-mut-help.rs:11:5
4 LL | map["peter"].clear();
5 | ^^^^^^^^^^^^^^^^^^^^ cannot borrow as mutable
7 = help: trait `IndexMut` is required to modify indexed content, but it is not implemented for `HashMap<&str, String>`
9 error[E0594]: cannot assign to data in an index of `HashMap<&str, String>`
10 --> $DIR/index-mut-help.rs:12:5
12 LL | map["peter"] = "0".to_string();
13 | ^^^^^^^^^^^^ cannot assign
15 = help: trait `IndexMut` is required to modify indexed content, but it is not implemented for `HashMap<&str, String>`
17 error[E0596]: cannot borrow data in an index of `HashMap<&str, String>` as mutable
18 --> $DIR/index-mut-help.rs:13:13
20 LL | let _ = &mut map["peter"];
21 | ^^^^^^^^^^^^^^^^^ cannot borrow as mutable
23 = help: trait `IndexMut` is required to modify indexed content, but it is not implemented for `HashMap<&str, String>`
25 error: aborting due to 3 previous errors
27 Some errors have detailed explanations: E0594, E0596.
28 For more information about an error, try `rustc --explain E0594`.