]> git.lizzy.rs Git - rust.git/blob - src/test/ui/proc-macro/illegal-proc-macro-derive-use.stderr
Auto merge of #106349 - LeSeulArtichaut:dyn-star-tracking-issue, r=jackh726
[rust.git] / src / test / ui / proc-macro / illegal-proc-macro-derive-use.stderr
1 error: the `#[proc_macro_derive]` attribute is only usable with crates of the `proc-macro` crate type
2   --> $DIR/illegal-proc-macro-derive-use.rs:3:1
3    |
4 LL | #[proc_macro_derive(Foo)]
5    | ^^^^^^^^^^^^^^^^^^^^^^^^^
6
7 error: the `#[proc_macro_derive]` attribute may only be used on bare functions
8   --> $DIR/illegal-proc-macro-derive-use.rs:10:1
9    |
10 LL | #[proc_macro_derive(Foo)]
11    | ^^^^^^^^^^^^^^^^^^^^^^^^^
12
13 error: aborting due to 2 previous errors
14