summaryrefslogtreecommitdiffstats
path: root/tests/ui/proc-macro/illegal-proc-macro-derive-use.stderr
blob: c0930ab710246f6541d28b9f0700a45134d4d74f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error: the `#[proc_macro_derive]` attribute is only usable with crates of the `proc-macro` crate type
  --> $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
  --> $DIR/illegal-proc-macro-derive-use.rs:10:1
   |
LL | #[proc_macro_derive(Foo)]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 2 previous errors