Writing Eq::eq produces an unhelpful diagnostic (std::cmp::Eq
cannot be made into an object)
#49984
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-traits
Area: Trait system
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I stared at this for a moment in pure disbelief... and then once I woke up a bit more, I remembered that
eq
is actually on thePartialEq
trait (and so what I wrote is not interpreted as<_ as Eq>::eq
, but rather as<Eq>::eq
).The text was updated successfully, but these errors were encountered: