Putting #[derive] before a macro attribute results in a bad error #89227
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.
I don't know, off the top of my head, what attribute macros are available on the playground, so I'll use the crate I'm maintaining. The details of it are pretty much irrelevant anyway.
Given the following code:
The current output is:
A few versions back (I've tested 1.41.1), we were outputting the following, much more legible error:
This is motivated by meithecatte/enumflags2#37 — it took me a moment to understand what was happening when a user reported that error.
The text was updated successfully, but these errors were encountered: