Confusing error message from missing semicolon after macro invocation #26288
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
This code
gives the error:
The problem is actually a missing semicolon after
foo!()
, but the message wasn't really helpful in figuring that out. (I initially left out the semicolon out of habit from C, where including it would result in an extra empty statement after expansion.)The text was updated successfully, but these errors were encountered: