"is not an iterator" diagnostic through blanket implementation, when the type is actually an iterator but is missing a marker #127511
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.
Uh oh!
There was an error while loading. Please reload this page.
Code
(inspired by rayon's
ParallelBridge
)playground
Current output
Desired output
The same error there is when removing the
.map()
Rationale and extra context
The error indicated the type does not implement
Iterator
, even though it does andSend
is the one that is missing.Other cases
No response
Rust Version
Anything else?
No response
The text was updated successfully, but these errors were encountered: