2018-12-02 22:27:37 +03:00
|
|
|
error: the `#[proc_macro_derive]` attribute is only usable with crates of the `proc-macro` crate type
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/illegal-proc-macro-derive-use.rs:3:1
|
2018-12-02 22:27:37 +03:00
|
|
|
|
|
|
|
|
|
LL | #[proc_macro_derive(Foo)]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2025-08-09 20:41:01 +02:00
|
|
|
error: `#[proc_macro_derive]` attribute cannot be used on structs
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/illegal-proc-macro-derive-use.rs:10:1
|
2018-12-02 22:27:37 +03:00
|
|
|
|
|
|
|
|
|
LL | #[proc_macro_derive(Foo)]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
2025-08-09 20:41:01 +02:00
|
|
|
|
|
|
|
|
|
= help: `#[proc_macro_derive]` can only be applied to functions
|
2018-12-02 22:27:37 +03:00
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|