Weird type error after syntax error #44579
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-bug
Category: This is a bug.
WG-diagnostics
Working group: Diagnostics
Steps to Reproduce
Given this code:
Expected Output
The syntax error is diagnosed
Actual Output
I'm sorry to be so harsh on the diagnostics; but we can be better at showing the user relevant diagnostics. (I remember g++ and having to learn to ignore everything after the first error. And those error outputs were long..)
This bug was reported after a discussion in #rust-beginners after a user was struggling with similar code and they came asking about error no. 2. Not about both errors, but about error no. 2.
The text was updated successfully, but these errors were encountered: