]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2565-param-attrs/proc-macro-cannot-be-used.stderr
Rollup merge of #78853 - calebcartwright:fix-const-block-expr-span, r=spastorino
[rust.git] / src / test / ui / rfc-2565-param-attrs / proc-macro-cannot-be-used.stderr
1 error: expected non-macro attribute, found attribute macro `id`
2   --> $DIR/proc-macro-cannot-be-used.rs:10:23
3    |
4 LL | extern "C" { fn ffi(#[id] arg1: i32, #[id] ...); }
5    |                       ^^ not a non-macro attribute
6
7 error: expected non-macro attribute, found attribute macro `id`
8   --> $DIR/proc-macro-cannot-be-used.rs:10:40
9    |
10 LL | extern "C" { fn ffi(#[id] arg1: i32, #[id] ...); }
11    |                                        ^^ not a non-macro attribute
12
13 error: expected non-macro attribute, found attribute macro `id`
14   --> $DIR/proc-macro-cannot-be-used.rs:14:40
15    |
16 LL | unsafe extern "C" fn cvar(arg1: i32, #[id] mut args: ...) {}
17    |                                        ^^ not a non-macro attribute
18
19 error: expected non-macro attribute, found attribute macro `id`
20   --> $DIR/proc-macro-cannot-be-used.rs:17:30
21    |
22 LL | type Alias = extern "C" fn(#[id] u8, #[id] ...);
23    |                              ^^ not a non-macro attribute
24
25 error: expected non-macro attribute, found attribute macro `id`
26   --> $DIR/proc-macro-cannot-be-used.rs:17:40
27    |
28 LL | type Alias = extern "C" fn(#[id] u8, #[id] ...);
29    |                                        ^^ not a non-macro attribute
30
31 error: expected non-macro attribute, found attribute macro `id`
32   --> $DIR/proc-macro-cannot-be-used.rs:21:11
33    |
34 LL | fn free(#[id] arg1: u8) {
35    |           ^^ not a non-macro attribute
36
37 error: expected non-macro attribute, found attribute macro `id`
38   --> $DIR/proc-macro-cannot-be-used.rs:23:18
39    |
40 LL |     let lam = |#[id] W(x), #[id] y: usize| ();
41    |                  ^^ not a non-macro attribute
42
43 error: expected non-macro attribute, found attribute macro `id`
44   --> $DIR/proc-macro-cannot-be-used.rs:23:30
45    |
46 LL |     let lam = |#[id] W(x), #[id] y: usize| ();
47    |                              ^^ not a non-macro attribute
48
49 error: expected non-macro attribute, found attribute macro `id`
50   --> $DIR/proc-macro-cannot-be-used.rs:29:20
51    |
52 LL |     fn inherent1(#[id] self, #[id] arg1: u8) {}
53    |                    ^^ not a non-macro attribute
54
55 error: expected non-macro attribute, found attribute macro `id`
56   --> $DIR/proc-macro-cannot-be-used.rs:29:32
57    |
58 LL |     fn inherent1(#[id] self, #[id] arg1: u8) {}
59    |                                ^^ not a non-macro attribute
60
61 error: expected non-macro attribute, found attribute macro `id`
62   --> $DIR/proc-macro-cannot-be-used.rs:32:20
63    |
64 LL |     fn inherent2(#[id] &self, #[id] arg1: u8) {}
65    |                    ^^ not a non-macro attribute
66
67 error: expected non-macro attribute, found attribute macro `id`
68   --> $DIR/proc-macro-cannot-be-used.rs:32:33
69    |
70 LL |     fn inherent2(#[id] &self, #[id] arg1: u8) {}
71    |                                 ^^ not a non-macro attribute
72
73 error: expected non-macro attribute, found attribute macro `id`
74   --> $DIR/proc-macro-cannot-be-used.rs:35:24
75    |
76 LL |     fn inherent3<'a>(#[id] &'a mut self, #[id] arg1: u8) {}
77    |                        ^^ not a non-macro attribute
78
79 error: expected non-macro attribute, found attribute macro `id`
80   --> $DIR/proc-macro-cannot-be-used.rs:35:44
81    |
82 LL |     fn inherent3<'a>(#[id] &'a mut self, #[id] arg1: u8) {}
83    |                                            ^^ not a non-macro attribute
84
85 error: expected non-macro attribute, found attribute macro `id`
86   --> $DIR/proc-macro-cannot-be-used.rs:38:24
87    |
88 LL |     fn inherent4<'a>(#[id] self: Box<Self>, #[id] arg1: u8) {}
89    |                        ^^ not a non-macro attribute
90
91 error: expected non-macro attribute, found attribute macro `id`
92   --> $DIR/proc-macro-cannot-be-used.rs:38:47
93    |
94 LL |     fn inherent4<'a>(#[id] self: Box<Self>, #[id] arg1: u8) {}
95    |                                               ^^ not a non-macro attribute
96
97 error: expected non-macro attribute, found attribute macro `id`
98   --> $DIR/proc-macro-cannot-be-used.rs:41:40
99    |
100 LL |     fn issue_64682_associated_fn<'a>(#[id] arg1: u8, #[id] arg2: u8) {}
101    |                                        ^^ not a non-macro attribute
102
103 error: expected non-macro attribute, found attribute macro `id`
104   --> $DIR/proc-macro-cannot-be-used.rs:41:56
105    |
106 LL |     fn issue_64682_associated_fn<'a>(#[id] arg1: u8, #[id] arg2: u8) {}
107    |                                                        ^^ not a non-macro attribute
108
109 error: expected non-macro attribute, found attribute macro `id`
110   --> $DIR/proc-macro-cannot-be-used.rs:47:17
111    |
112 LL |     fn trait1(#[id] self, #[id] arg1: u8);
113    |                 ^^ not a non-macro attribute
114
115 error: expected non-macro attribute, found attribute macro `id`
116   --> $DIR/proc-macro-cannot-be-used.rs:47:29
117    |
118 LL |     fn trait1(#[id] self, #[id] arg1: u8);
119    |                             ^^ not a non-macro attribute
120
121 error: expected non-macro attribute, found attribute macro `id`
122   --> $DIR/proc-macro-cannot-be-used.rs:50:17
123    |
124 LL |     fn trait2(#[id] &self, #[id] arg1: u8);
125    |                 ^^ not a non-macro attribute
126
127 error: expected non-macro attribute, found attribute macro `id`
128   --> $DIR/proc-macro-cannot-be-used.rs:50:30
129    |
130 LL |     fn trait2(#[id] &self, #[id] arg1: u8);
131    |                              ^^ not a non-macro attribute
132
133 error: expected non-macro attribute, found attribute macro `id`
134   --> $DIR/proc-macro-cannot-be-used.rs:53:21
135    |
136 LL |     fn trait3<'a>(#[id] &'a mut self, #[id] arg1: u8);
137    |                     ^^ not a non-macro attribute
138
139 error: expected non-macro attribute, found attribute macro `id`
140   --> $DIR/proc-macro-cannot-be-used.rs:53:41
141    |
142 LL |     fn trait3<'a>(#[id] &'a mut self, #[id] arg1: u8);
143    |                                         ^^ not a non-macro attribute
144
145 error: expected non-macro attribute, found attribute macro `id`
146   --> $DIR/proc-macro-cannot-be-used.rs:56:21
147    |
148 LL |     fn trait4<'a>(#[id] self: Box<Self>, #[id] arg1: u8, #[id] Vec<u8>);
149    |                     ^^ not a non-macro attribute
150
151 error: expected non-macro attribute, found attribute macro `id`
152   --> $DIR/proc-macro-cannot-be-used.rs:56:44
153    |
154 LL |     fn trait4<'a>(#[id] self: Box<Self>, #[id] arg1: u8, #[id] Vec<u8>);
155    |                                            ^^ not a non-macro attribute
156
157 error: expected non-macro attribute, found attribute macro `id`
158   --> $DIR/proc-macro-cannot-be-used.rs:56:60
159    |
160 LL |     fn trait4<'a>(#[id] self: Box<Self>, #[id] arg1: u8, #[id] Vec<u8>);
161    |                                                            ^^ not a non-macro attribute
162
163 error: expected non-macro attribute, found attribute macro `id`
164   --> $DIR/proc-macro-cannot-be-used.rs:60:40
165    |
166 LL |     fn issue_64682_associated_fn<'a>(#[id] arg1: u8, #[id] arg2: u8);
167    |                                        ^^ not a non-macro attribute
168
169 error: expected non-macro attribute, found attribute macro `id`
170   --> $DIR/proc-macro-cannot-be-used.rs:60:56
171    |
172 LL |     fn issue_64682_associated_fn<'a>(#[id] arg1: u8, #[id] arg2: u8);
173    |                                                        ^^ not a non-macro attribute
174
175 error: aborting due to 29 previous errors
176