rust/tests/ui/proc-macro/illegal-proc-macro-derive-use.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
456 B
Plaintext
Raw Normal View History

error: the `#[proc_macro_derive]` attribute is only usable with crates of the `proc-macro` crate type
2018-12-25 15:56:47 +00:00
--> $DIR/illegal-proc-macro-derive-use.rs:3:1
|
LL | #[proc_macro_derive(Foo)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error: the `#[proc_macro_derive]` attribute may only be used on bare functions
2018-12-25 15:56:47 +00:00
--> $DIR/illegal-proc-macro-derive-use.rs:10:1
|
LL | #[proc_macro_derive(Foo)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to 2 previous errors