incorrect error message for duplicate Send impl #69938
Labels
A-async-await
Area: Async & Await
A-diagnostics
Area: Messages for errors, warnings, and lints
AsyncAwait-Triaged
Async-await issues that have been triaged during a working group meeting.
C-bug
Category: This is a bug.
D-incorrect
Diagnostics: A diagnostic that is giving misleading or incorrect information.
P-medium
Medium priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
For a specific case, the compiler reports an incorrect error message when there is a duplicate error
I tried this code:
it reports this error:
If I comment out the line that calls foo.bar() I get the expected error:
Here's a playground
Meta
Reproduced in 1.14.1, It also happens in nightly
originally found in
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: