Can this error be a little better? "E0576: cannot find method or associated constant ..." #61729
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
D-papercut
Diagnostics: An error or lint that needs small tweaks.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
playground:
The problem(s):
<Human as Human>
probably because the latterHuman
isn't a trait, (soType as Type
is not valid?), as per:or associated constant
- this is true) inHuman
but this is not true, the method is there, for bothHuman
andHuman2
- can the error be improved in this regard?Human
(orHuman2
) isn't a trait instead? (if<Type as Trait>::function(...)
is the only allowed syntax.The text was updated successfully, but these errors were encountered: