]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/issue-43106-gating-of-proc_macro_derive.stderr
Rollup merge of #94449 - GuillaumeGomez:explanation-e0726, r=Urgau
[rust.git] / src / test / ui / feature-gates / issue-43106-gating-of-proc_macro_derive.stderr
1 error: 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    |
4 LL | #[proc_macro_derive()]
5    | ^^^^^^^^^^^^^^^^^^^^^^
6
7 error: 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    |
10 LL |     mod inner { #![proc_macro_derive()] }
11    |                 ^^^^^^^^^^^^^^^^^^^^^^^
12
13 error: 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    |
16 LL |     #[proc_macro_derive()] fn f() { }
17    |     ^^^^^^^^^^^^^^^^^^^^^^
18
19 error: 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    |
22 LL |     #[proc_macro_derive()] struct S;
23    |     ^^^^^^^^^^^^^^^^^^^^^^
24
25 error: 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    |
28 LL |     #[proc_macro_derive()] type T = S;
29    |     ^^^^^^^^^^^^^^^^^^^^^^
30
31 error: 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    |
34 LL |     #[proc_macro_derive()] impl S { }
35    |     ^^^^^^^^^^^^^^^^^^^^^^
36
37 error: aborting due to 6 previous errors
38