Add suggestions for potentially misspelled #[derive] traits #39323
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-macros
Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
I ran into an error when compiling a program a couple of days ago that turned out to be due to a spelling mistake. It was suggested by @carols10cents that I create an issue here to discuss adding a “Did you mean X?” hint when compiling fails because of a trait's name.
For clarity's sake, the screenshot below was the error I got and this is the sort of thing I'm suggesting:
I expect this hinges somewhat on whether or not #29644 goes through.
The text was updated successfully, but these errors were encountered: