--> src/main.rs:14:14
|
8 | $(#[$attr])*
| ___________-
9 | | struct $name;
| |_____________________- this function has a `self` parameter, but a macro invocation can only access identifiers it receives from parameters
...
14 | #[derive(Derivative)]
| ^^^^^^^^^^ `self` value is a keyword only available in methods with a `self` parameter
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
After updating to the latest nightly,
#derive(Derivative)
does not work in macro anymore.Compiler error:
Version info:
Version of
derivative
: 2.1.1