Poor error suggestion from failure to use
trait
#79579
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
A-trait-system
Area: Trait system
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
D-invalid-suggestion
Diagnostics: A structured suggestion resulting in incorrect code.
D-papercut
Diagnostics: An error or lint that needs small tweaks.
S-needs-repro
Status: This issue has no reproduction and needs a reproduction to make progress.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Forwarding: rust-num/num-derive#44
As described in the above issue originally filed against
num-derive
, I experienced a very poor suggestion in the error message resulting from forgetting touse
the trait in question.I'll duplicate the error here, but please see the linked issue for full details.
Clearly the trait referenced in that suggestion is not one that Rust should be making.
Additionally I pointed out a secondary lesser issue with the type name used in the error being unhelpful as it uses the original name rather than the re-exported name.
I'm currently on Rust 1.47 (Debian Sid).
The text was updated successfully, but these errors were encountered: