Incorrect error position in compiler error message for E0277 #67135
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Summary
Compiler seems to point to an incorrect line number/column number when describing the error.
Actual
When I try to compile the following short code:
I get the following error message:
Expected
I expected the compiler to error out on line 3, since I've declared the type of
xs
to beVec<String>
. I can get the expected behavior by commenting out line 4:Which gives me:
Meta
The text was updated successfully, but these errors were encountered: