Suggest importable type that differs only in capitalization #72641
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
D-papercut
Diagnostics: An error or lint that needs small tweaks.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
If the code had been written with
HashMap
instead ofHashmap
, we would get the following extremely likely correct suggestion:Hashmap
is a fairly common capitalization in other languages (https://grep.app/search?q=Hashmap&case=true) so it would be good to provide an appropriate suggestion in this case.(For whatever reason this doesn't trigger #72640.)
The text was updated successfully, but these errors were encountered: