FromField
should warn or error if #[darling(attributes(...))]
and #[darling(forward_attrs(...))]
are both empty
#166
Labels
In #165 I faced with the problem, when I derive
FromField
for my struct and try to use it, but I've got nothing, because I've not specify#[darling(attributes(xml))]
. Another derive that I tried before (if I remember correctly,FromAttributes
) issues a compiler error about missing#[darling(attributes(...))]
.It seems that without this attributes derive is useless, so it should be a compiler error if it is missed:
successfully compiled
The text was updated successfully, but these errors were encountered: