Misleading error when attempting to use macro_rules
as an attribute
#132928
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Code provided by Discord user baltdev on the Rust Programming Language Discord server (message link).
Current output
Desired output
Rationale and extra context
The error message is about a missing definition that is not missing, and incorrectly suggests that reordering the code might help. It should instead explain the fundamental problem with what is being attempted.
This issue is moot if rust-lang/rfcs#3697 is implemented.
Other cases
Rust Version
Anything else?
No response
The text was updated successfully, but these errors were encountered: