Derive helper attributes not working on type parameters #114393
Labels
A-macros
Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
A-proc-macros
Area: Procedural macros
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I've got the following custom derive impl:
We already have code where
#[zerofrom(clone)]
works on fields just fine.However, the following does not work:
which throws up the following error:
It seems like the attributes only get checked on fields and the struct itself, but this is deep in resolver code that I don't understand.
The text was updated successfully, but these errors were encountered: