Bad error message for when an assigned associated type does not satisfy the trait bounds #58707
Labels
A-associated-items
Area: Associated items (types, constants & functions)
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
This code:
Leads to (stable 1.32 and nightly 1.34):
The error is that
bool
does not implementBar
. I would expect that the error points to the linetype Assoc = bool;
, potentially with a good note. Example:The text was updated successfully, but these errors were encountered: