Incorrect note for expected type in E0271 when using an associated type #64760
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-bug
Category: This is a bug.
D-incorrect
Diagnostics: A diagnostic that is giving misleading or incorrect information.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
With the following code:
the diagnostic (in nightly & stable) wrongly complains about the expected type:
It should be the reversed.
This makes it difficult to understand that the
into_iter
should be changed toiter
.The text was updated successfully, but these errors were encountered: