1 error: malformed `proc_macro_derive` attribute input
2 --> $DIR/attribute.rs:9:1
4 LL | #[proc_macro_derive]
5 | ^^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[proc_macro_derive(TraitName, /*opt*/ attributes(name1, name2, ...))]`
7 error: malformed `proc_macro_derive` attribute input
8 --> $DIR/attribute.rs:12:1
10 LL | #[proc_macro_derive = ""]
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[proc_macro_derive(TraitName, /*opt*/ attributes(name1, name2, ...))]`
13 error: attribute must have either one or two arguments
14 --> $DIR/attribute.rs:15:1
16 LL | #[proc_macro_derive(d3, a, b)]
17 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
19 error: attribute must have either one or two arguments
20 --> $DIR/attribute.rs:19:1
22 LL | #[proc_macro_derive(d4, attributes(a), b)]
23 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
25 error: not a meta item
26 --> $DIR/attribute.rs:23:21
28 LL | #[proc_macro_derive("a")]
31 error: must only be one word
32 --> $DIR/attribute.rs:27:21
34 LL | #[proc_macro_derive(d6 = "")]
37 error: must only be one word
38 --> $DIR/attribute.rs:31:21
40 LL | #[proc_macro_derive(m::d7)]
43 error: must only be one word
44 --> $DIR/attribute.rs:35:21
46 LL | #[proc_macro_derive(d8(a))]
49 error: `self` cannot be a name of derive macro
50 --> $DIR/attribute.rs:39:21
52 LL | #[proc_macro_derive(self)]
55 error: second argument must be `attributes`
56 --> $DIR/attribute.rs:46:26
58 LL | #[proc_macro_derive(d11, a)]
61 error: attribute must be of form: `attributes(foo, bar)`
62 --> $DIR/attribute.rs:46:26
64 LL | #[proc_macro_derive(d11, a)]
67 error: attribute must be of form: `attributes(foo, bar)`
68 --> $DIR/attribute.rs:51:26
70 LL | #[proc_macro_derive(d12, attributes)]
73 error: not a meta item
74 --> $DIR/attribute.rs:55:37
76 LL | #[proc_macro_derive(d13, attributes("a"))]
79 error: must only be one word
80 --> $DIR/attribute.rs:59:37
82 LL | #[proc_macro_derive(d14, attributes(a = ""))]
85 error: must only be one word
86 --> $DIR/attribute.rs:63:37
88 LL | #[proc_macro_derive(d15, attributes(m::a))]
91 error: must only be one word
92 --> $DIR/attribute.rs:67:37
94 LL | #[proc_macro_derive(d16, attributes(a(b)))]
97 error: `self` cannot be a name of derive helper attribute
98 --> $DIR/attribute.rs:71:37
100 LL | #[proc_macro_derive(d17, attributes(self))]
103 error: aborting due to 17 previous errors