-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Wrong Error Message "Add is not a Trait" #35987
Copy link
Copy link
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
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 TraitPlayground Link
This happens on both Nightly, Beta and Stable.