fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
456 B14 linesraw
1error: 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   |
4LL | #[proc_macro_derive(Foo)]
5   | ^^^^^^^^^^^^^^^^^^^^^^^^^
6
7error: the `#[proc_macro_derive]` attribute may only be used on bare functions
8  --> $DIR/illegal-proc-macro-derive-use.rs:10:1
9   |
10LL | #[proc_macro_derive(Foo)]
11   | ^^^^^^^^^^^^^^^^^^^^^^^^^
12
13error: aborting due to 2 previous errors
14