E0623 gives very confusing message #91831
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-lifetimes
Area: Lifetimes / regions
A-variance
Area: Variance (https://doc.rust-lang.org/nomicon/subtyping.html)
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
D-newcomer-roadblock
Diagnostics: Confusing error or lint; hard to understand for new users.
D-terse
Diagnostics: An error or lint that doesn't give enough information about the problem at hand.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code:
The current output is:
This is really confusing. The error mentions two types, but then it only points to one type. And then it says "data from
writer
flows intowriter
". What? The data flows into itself?The text was updated successfully, but these errors were encountered: