"trait not implemented" errors can be very confusing when the trait has an associated type with bounds #61768
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.
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.
Simple example using rayon (playground):
This code rightly doesn't compile because
rayon
sIntoParallelIterator
has aSend
bound on itsItem
type. However, none of the error messages for the methods called in the code above ever mention that bound or the associated type:The text was updated successfully, but these errors were encountered: