Tweak E0038 output to be more pedagogic. #77598
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
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
D-newcomer-roadblock
Diagnostics: Confusing error or lint; hard to understand for new users.
D-verbose
Diagnostics: Too much output caused by a single piece of incorrect code.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given:
We currently emit
and two other similar errors.
Ideally, we would emit only a single error for this case, and produce output closer to
Taken from https://users.rust-lang.org/t/why-cant-i-impl-dyn-a-trait-with-static-methods-and-whats-the-correct-way-to-achieve-this/49637
The text was updated successfully, but these errors were encountered: