cannot assign to data in an index of HashMap<_, _>
diagnostic suggests solution that does not type check
#134917
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Current output
Desired output
Rationale and extra context
HashMap::insert
andHashMap::entry
take owned key values.Other cases
Rust Version
Anything else?
Similar fixes might be necessary for other container types in
std::collections
The text was updated successfully, but these errors were encountered: