Misspelling of macro_rules! #91227
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Consider the following snippet:
It might look completely fine at first, but then rustc spits out this error message:
The actual problem is that
macro_rules
is misspelled asma*rc*o_rules
. It took me a while to see the problem myself when I encountered it.Could there possibly be a lint that checks for this case and gives a proper error message? The current one is extra misleading since it even points away from the actual source of the error.
The text was updated successfully, but these errors were encountered: