]> git.lizzy.rs Git - rust.git/blob - tests/ui/proc-macro/attribute.stderr
Auto merge of #107297 - Mark-Simulacrum:bump-bootstrap, r=pietroalbini
[rust.git] / tests / ui / proc-macro / attribute.stderr
1 error: malformed `proc_macro_derive` attribute input
2   --> $DIR/attribute.rs:9:1
3    |
4 LL | #[proc_macro_derive]
5    | ^^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[proc_macro_derive(TraitName, /*opt*/ attributes(name1, name2, ...))]`
6
7 error: malformed `proc_macro_derive` attribute input
8   --> $DIR/attribute.rs:12:1
9    |
10 LL | #[proc_macro_derive = ""]
11    | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[proc_macro_derive(TraitName, /*opt*/ attributes(name1, name2, ...))]`
12
13 error: attribute must have either one or two arguments
14   --> $DIR/attribute.rs:15:1
15    |
16 LL | #[proc_macro_derive(d3, a, b)]
17    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18
19 error: attribute must have either one or two arguments
20   --> $DIR/attribute.rs:19:1
21    |
22 LL | #[proc_macro_derive(d4, attributes(a), b)]
23    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24
25 error: not a meta item
26   --> $DIR/attribute.rs:23:21
27    |
28 LL | #[proc_macro_derive("a")]
29    |                     ^^^
30
31 error: must only be one word
32   --> $DIR/attribute.rs:27:21
33    |
34 LL | #[proc_macro_derive(d6 = "")]
35    |                     ^^^^^^^
36
37 error: must only be one word
38   --> $DIR/attribute.rs:31:21
39    |
40 LL | #[proc_macro_derive(m::d7)]
41    |                     ^^^^^
42
43 error: must only be one word
44   --> $DIR/attribute.rs:35:21
45    |
46 LL | #[proc_macro_derive(d8(a))]
47    |                     ^^^^^
48
49 error: `self` cannot be a name of derive macro
50   --> $DIR/attribute.rs:39:21
51    |
52 LL | #[proc_macro_derive(self)]
53    |                     ^^^^
54
55 error: second argument must be `attributes`
56   --> $DIR/attribute.rs:46:26
57    |
58 LL | #[proc_macro_derive(d11, a)]
59    |                          ^
60
61 error: attribute must be of form: `attributes(foo, bar)`
62   --> $DIR/attribute.rs:46:26
63    |
64 LL | #[proc_macro_derive(d11, a)]
65    |                          ^
66
67 error: attribute must be of form: `attributes(foo, bar)`
68   --> $DIR/attribute.rs:51:26
69    |
70 LL | #[proc_macro_derive(d12, attributes)]
71    |                          ^^^^^^^^^^
72
73 error: attribute must be a meta item, not a literal
74   --> $DIR/attribute.rs:55:37
75    |
76 LL | #[proc_macro_derive(d13, attributes("a"))]
77    |                                     ^^^
78
79 error: attribute must only be a single word
80   --> $DIR/attribute.rs:59:37
81    |
82 LL | #[proc_macro_derive(d14, attributes(a = ""))]
83    |                                     ^^^^^^
84
85 error: attribute must only be a single word
86   --> $DIR/attribute.rs:63:37
87    |
88 LL | #[proc_macro_derive(d15, attributes(m::a))]
89    |                                     ^^^^
90
91 error: attribute must only be a single word
92   --> $DIR/attribute.rs:67:37
93    |
94 LL | #[proc_macro_derive(d16, attributes(a(b)))]
95    |                                     ^^^^
96
97 error: `self` cannot be a name of derive helper attribute
98   --> $DIR/attribute.rs:71:37
99    |
100 LL | #[proc_macro_derive(d17, attributes(self))]
101    |                                     ^^^^
102
103 error: aborting due to 17 previous errors
104