Confusing error message: "Expected Foo, found Foo" #121944
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-lifetimes
Area: Lifetimes / regions
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.
Code
Current output
Desired output
Rationale and extra context
Expected "XXX", found "XXX" is wrong when XXX is exactly the same.
Other cases
No response
Rust Version
Anything else?
No response
The text was updated successfully, but these errors were encountered: