Wrong Error Message "Add is not a Trait" #35987
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I made a mistake while implementing Add for a type. Instead of using
+
for specifying multiple constraints, I accidentally used,
and for some reason the compiler can't handle this very well. Instead of complaining about the,
it says thatAdd is not a Trait
Playground Link
This happens on both Nightly, Beta and Stable.
The text was updated successfully, but these errors were encountered: