“expected” and “found” interchanged in error message E0308 #57226
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
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.
I’m using
rustc 1.33.0-nightly (a2b0f247b 2018-12-30)
.func
expects anMyTrait<Item=i32>
, so the error message should say: “expected typei32
, found type&str
.” Instead, they’re interchanged and it says:The text was updated successfully, but these errors were encountered: