#[derive] suggestion should check for local struct #37522
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
Consider this code:
Both marked lines print the error that
Debug
is not satisfied and note that "if it is defined in your crate, add#[derive(Debug)]
or manually implement it". The compiler should be able to check and issue the note only for (1), instead of printing the confusing "if it is defined in your crate".The text was updated successfully, but these errors were encountered: