Better diagnostics for let = (let =
#30440
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-parser
Area: The lexing & parsing of Rust source code to an AST
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
This code isn't valid Rust:
We have an okay, but not great, diagnostic here:
It might be nice to add a
note
when the keyword found islet
that mentions thatlet
is not an expression, and so cannot be used in this way.The text was updated successfully, but these errors were encountered: