fork/rust
git clone https://git.julia.blue/fork/rust
4fb7144ed15
1.43.0
1error: the `#[proc_macro_derive]` attribute may only be used on bare functions 2 --> $DIR/issue-43106-gating-of-proc_macro_derive.rs:10:1 3 | 4LL | #[proc_macro_derive()] 5 | ^^^^^^^^^^^^^^^^^^^^^^ 6 7error: the `#[proc_macro_derive]` attribute may only be used on bare functions 8 --> $DIR/issue-43106-gating-of-proc_macro_derive.rs:18:17 9 | 10LL | mod inner { #![proc_macro_derive()] } 11 | ^^^^^^^^^^^^^^^^^^^^^^^ 12 13error: the `#[proc_macro_derive]` attribute is only usable with crates of the `proc-macro` crate type 14 --> $DIR/issue-43106-gating-of-proc_macro_derive.rs:21:5 15 | 16LL | #[proc_macro_derive()] fn f() { } 17 | ^^^^^^^^^^^^^^^^^^^^^^ 18 19error: the `#[proc_macro_derive]` attribute may only be used on bare functions 20 --> $DIR/issue-43106-gating-of-proc_macro_derive.rs:24:5 21 | 22LL | #[proc_macro_derive()] struct S; 23 | ^^^^^^^^^^^^^^^^^^^^^^ 24 25error: the `#[proc_macro_derive]` attribute may only be used on bare functions 26 --> $DIR/issue-43106-gating-of-proc_macro_derive.rs:27:5 27 | 28LL | #[proc_macro_derive()] type T = S; 29 | ^^^^^^^^^^^^^^^^^^^^^^ 30 31error: the `#[proc_macro_derive]` attribute may only be used on bare functions 32 --> $DIR/issue-43106-gating-of-proc_macro_derive.rs:30:5 33 | 34LL | #[proc_macro_derive()] impl S { } 35 | ^^^^^^^^^^^^^^^^^^^^^^ 36 37error: aborting due to 6 previous errors 38