Closed
Description
Follow up on #52788 and produce the following output when enabling NLL:
error[E0596]: cannot borrow immutable indexed content as mutable
--> $DIR/index-mut-help.rs:21:5
|
LL | map["peter"].clear(); //~ ERROR
| ^^^^^^^^^^^^ cannot borrow as mutable
|
= help: trait `IndexMut` is required to modify indexed content, but it is not implemented for `std::collections::HashMap<&str, std::string::String>`