fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

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