Improve diagnostic for missing IndexMut: HashMap
#100873
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
D-newcomer-roadblock
Diagnostics: Confusing error or lint; hard to understand for new users.
D-terse
Diagnostics: An error or lint that doesn't give enough information about the problem at hand.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The following is invalid
Because the entry
&5
must exist before it can be assigned to. We should propose the use of theEntry
APIs or.insert
method.https://users.rust-lang.org/t/problematic-errormessage-indexmut-is-required-to-modify-indexed-content/80158
The text was updated successfully, but these errors were encountered: