Trait::nonexistant
treats Trait
as a type, resulting in bad errors
#136994
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
D-newcomer-roadblock
Diagnostics: Confusing error or lint; hard to understand for new users.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
T-types
Relevant to the types team, which will review and decide on the PR/issue.
cc #58734
Lowering
Trait
results in the following error in edition 2021and the following in previous editions
Both errors are quite bad and should be fixed by a more principled approach.
#136928 removed a hack which avoided emitting a WF obligation for the self type if method resolution failed, avoiding the "the trait
Trait
is not dyn compatible" error in edition 2018.The text was updated successfully, but these errors were encountered: