Provide a clearer error message for semicolons after structs and similar #51603
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-frontend
Area: Compiler frontend (errors, parsing and HIR)
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
WG-diagnostics
Working group: Diagnostics
Right now, writing something like
struct S {};
just produces a parse error:We could make this error message much clearer by recognizing this common error and specifically saying "don't put a semicolon after a struct/union/enum declaration".
The text was updated successfully, but these errors were encountered: