]> git.lizzy.rs Git - rust.git/blob - tests/ui/rfc-2565-param-attrs/param-attrs-builtin-attrs.stderr
Rollup merge of #105172 - alexs-sh:issue-98861-fix-next, r=scottmcm
[rust.git] / tests / ui / rfc-2565-param-attrs / param-attrs-builtin-attrs.stderr
1 error: expected non-macro attribute, found attribute macro `test`
2   --> $DIR/param-attrs-builtin-attrs.rs:5:11
3    |
4 LL |         #[test] a: i32,
5    |           ^^^^ not a non-macro attribute
6
7 error: expected non-macro attribute, found attribute macro `test`
8   --> $DIR/param-attrs-builtin-attrs.rs:21:7
9    |
10 LL |     #[test] a: u32,
11    |       ^^^^ not a non-macro attribute
12
13 error: expected non-macro attribute, found attribute macro `test`
14   --> $DIR/param-attrs-builtin-attrs.rs:36:7
15    |
16 LL |     #[test] a: u32,
17    |       ^^^^ not a non-macro attribute
18
19 error: expected non-macro attribute, found attribute macro `test`
20   --> $DIR/param-attrs-builtin-attrs.rs:56:11
21    |
22 LL |         #[test] a: i32,
23    |           ^^^^ not a non-macro attribute
24
25 error: expected non-macro attribute, found attribute macro `test`
26   --> $DIR/param-attrs-builtin-attrs.rs:71:11
27    |
28 LL |         #[test] a: i32,
29    |           ^^^^ not a non-macro attribute
30
31 error: expected non-macro attribute, found attribute macro `test`
32   --> $DIR/param-attrs-builtin-attrs.rs:92:11
33    |
34 LL |         #[test] a: i32,
35    |           ^^^^ not a non-macro attribute
36
37 error: expected non-macro attribute, found attribute macro `test`
38   --> $DIR/param-attrs-builtin-attrs.rs:111:11
39    |
40 LL |         #[test] a: i32,
41    |           ^^^^ not a non-macro attribute
42
43 error: expected non-macro attribute, found attribute macro `test`
44   --> $DIR/param-attrs-builtin-attrs.rs:126:11
45    |
46 LL |         #[test] a: i32,
47    |           ^^^^ not a non-macro attribute
48
49 error: expected non-macro attribute, found attribute macro `test`
50   --> $DIR/param-attrs-builtin-attrs.rs:146:11
51    |
52 LL |         #[test] a: i32,
53    |           ^^^^ not a non-macro attribute
54
55 error: expected non-macro attribute, found attribute macro `test`
56   --> $DIR/param-attrs-builtin-attrs.rs:163:11
57    |
58 LL |         #[test] a: u32,
59    |           ^^^^ not a non-macro attribute
60
61 error: documentation comments cannot be applied to function parameters
62   --> $DIR/param-attrs-builtin-attrs.rs:3:9
63    |
64 LL |         /// Foo
65    |         ^^^^^^^ doc comments are not allowed here
66
67 error: documentation comments cannot be applied to function parameters
68   --> $DIR/param-attrs-builtin-attrs.rs:7:9
69    |
70 LL |         /// Bar
71    |         ^^^^^^^ doc comments are not allowed here
72
73 error: allow, cfg, cfg_attr, deny, expect, forbid, and warn are the only allowed built-in attributes in function parameters
74   --> $DIR/param-attrs-builtin-attrs.rs:9:9
75    |
76 LL |         #[must_use]
77    |         ^^^^^^^^^^^
78
79 error: documentation comments cannot be applied to function parameters
80   --> $DIR/param-attrs-builtin-attrs.rs:11:9
81    |
82 LL |         /// Baz
83    |         ^^^^^^^ doc comments are not allowed here
84
85 error: allow, cfg, cfg_attr, deny, expect, forbid, and warn are the only allowed built-in attributes in function parameters
86   --> $DIR/param-attrs-builtin-attrs.rs:13:9
87    |
88 LL |         #[no_mangle] b: i32,
89    |         ^^^^^^^^^^^^
90
91 error: documentation comments cannot be applied to function parameters
92   --> $DIR/param-attrs-builtin-attrs.rs:19:5
93    |
94 LL |     /// Foo
95    |     ^^^^^^^ doc comments are not allowed here
96
97 error: documentation comments cannot be applied to function parameters
98   --> $DIR/param-attrs-builtin-attrs.rs:23:5
99    |
100 LL |     /// Bar
101    |     ^^^^^^^ doc comments are not allowed here
102
103 error: allow, cfg, cfg_attr, deny, expect, forbid, and warn are the only allowed built-in attributes in function parameters
104   --> $DIR/param-attrs-builtin-attrs.rs:25:5
105    |
106 LL |     #[must_use]
107    |     ^^^^^^^^^^^
108
109 error: documentation comments cannot be applied to function parameters
110   --> $DIR/param-attrs-builtin-attrs.rs:27:5
111    |
112 LL |     /// Baz
113    |     ^^^^^^^ doc comments are not allowed here
114
115 error: allow, cfg, cfg_attr, deny, expect, forbid, and warn are the only allowed built-in attributes in function parameters
116   --> $DIR/param-attrs-builtin-attrs.rs:29:5
117    |
118 LL |     #[no_mangle] b: i32,
119    |     ^^^^^^^^^^^^
120
121 error: documentation comments cannot be applied to function parameters
122   --> $DIR/param-attrs-builtin-attrs.rs:34:5
123    |
124 LL |     /// Foo
125    |     ^^^^^^^ doc comments are not allowed here
126
127 error: documentation comments cannot be applied to function parameters
128   --> $DIR/param-attrs-builtin-attrs.rs:38:5
129    |
130 LL |     /// Bar
131    |     ^^^^^^^ doc comments are not allowed here
132
133 error: allow, cfg, cfg_attr, deny, expect, forbid, and warn are the only allowed built-in attributes in function parameters
134   --> $DIR/param-attrs-builtin-attrs.rs:40:5
135    |
136 LL |     #[must_use]
137    |     ^^^^^^^^^^^
138
139 error: documentation comments cannot be applied to function parameters
140   --> $DIR/param-attrs-builtin-attrs.rs:42:5
141    |
142 LL |     /// Baz
143    |     ^^^^^^^ doc comments are not allowed here
144
145 error: allow, cfg, cfg_attr, deny, expect, forbid, and warn are the only allowed built-in attributes in function parameters
146   --> $DIR/param-attrs-builtin-attrs.rs:44:5
147    |
148 LL |     #[no_mangle] b: i32,
149    |     ^^^^^^^^^^^^
150
151 error: documentation comments cannot be applied to function parameters
152   --> $DIR/param-attrs-builtin-attrs.rs:51:9
153    |
154 LL |         /// Foo
155    |         ^^^^^^^ doc comments are not allowed here
156
157 error: documentation comments cannot be applied to function parameters
158   --> $DIR/param-attrs-builtin-attrs.rs:54:9
159    |
160 LL |         /// Bar
161    |         ^^^^^^^ doc comments are not allowed here
162
163 error: documentation comments cannot be applied to function parameters
164   --> $DIR/param-attrs-builtin-attrs.rs:58:9
165    |
166 LL |         /// Baz
167    |         ^^^^^^^ doc comments are not allowed here
168
169 error: allow, cfg, cfg_attr, deny, expect, forbid, and warn are the only allowed built-in attributes in function parameters
170   --> $DIR/param-attrs-builtin-attrs.rs:60:9
171    |
172 LL |         #[must_use]
173    |         ^^^^^^^^^^^
174
175 error: documentation comments cannot be applied to function parameters
176   --> $DIR/param-attrs-builtin-attrs.rs:62:9
177    |
178 LL |         /// Qux
179    |         ^^^^^^^ doc comments are not allowed here
180
181 error: allow, cfg, cfg_attr, deny, expect, forbid, and warn are the only allowed built-in attributes in function parameters
182   --> $DIR/param-attrs-builtin-attrs.rs:64:9
183    |
184 LL |         #[no_mangle] b: i32,
185    |         ^^^^^^^^^^^^
186
187 error: documentation comments cannot be applied to function parameters
188   --> $DIR/param-attrs-builtin-attrs.rs:69:9
189    |
190 LL |         /// Foo
191    |         ^^^^^^^ doc comments are not allowed here
192
193 error: documentation comments cannot be applied to function parameters
194   --> $DIR/param-attrs-builtin-attrs.rs:73:9
195    |
196 LL |         /// Baz
197    |         ^^^^^^^ doc comments are not allowed here
198
199 error: allow, cfg, cfg_attr, deny, expect, forbid, and warn are the only allowed built-in attributes in function parameters
200   --> $DIR/param-attrs-builtin-attrs.rs:75:9
201    |
202 LL |         #[must_use]
203    |         ^^^^^^^^^^^
204
205 error: documentation comments cannot be applied to function parameters
206   --> $DIR/param-attrs-builtin-attrs.rs:77:9
207    |
208 LL |         /// Qux
209    |         ^^^^^^^ doc comments are not allowed here
210
211 error: allow, cfg, cfg_attr, deny, expect, forbid, and warn are the only allowed built-in attributes in function parameters
212   --> $DIR/param-attrs-builtin-attrs.rs:79:9
213    |
214 LL |         #[no_mangle] b: i32,
215    |         ^^^^^^^^^^^^
216
217 error: documentation comments cannot be applied to function parameters
218   --> $DIR/param-attrs-builtin-attrs.rs:87:9
219    |
220 LL |         /// Foo
221    |         ^^^^^^^ doc comments are not allowed here
222
223 error: documentation comments cannot be applied to function parameters
224   --> $DIR/param-attrs-builtin-attrs.rs:90:9
225    |
226 LL |         /// Bar
227    |         ^^^^^^^ doc comments are not allowed here
228
229 error: documentation comments cannot be applied to function parameters
230   --> $DIR/param-attrs-builtin-attrs.rs:94:9
231    |
232 LL |         /// Baz
233    |         ^^^^^^^ doc comments are not allowed here
234
235 error: allow, cfg, cfg_attr, deny, expect, forbid, and warn are the only allowed built-in attributes in function parameters
236   --> $DIR/param-attrs-builtin-attrs.rs:96:9
237    |
238 LL |         #[must_use]
239    |         ^^^^^^^^^^^
240
241 error: documentation comments cannot be applied to function parameters
242   --> $DIR/param-attrs-builtin-attrs.rs:98:9
243    |
244 LL |         /// Qux
245    |         ^^^^^^^ doc comments are not allowed here
246
247 error: allow, cfg, cfg_attr, deny, expect, forbid, and warn are the only allowed built-in attributes in function parameters
248   --> $DIR/param-attrs-builtin-attrs.rs:100:9
249    |
250 LL |         #[no_mangle] b: i32,
251    |         ^^^^^^^^^^^^
252
253 error: documentation comments cannot be applied to function parameters
254   --> $DIR/param-attrs-builtin-attrs.rs:106:9
255    |
256 LL |         /// Foo
257    |         ^^^^^^^ doc comments are not allowed here
258
259 error: documentation comments cannot be applied to function parameters
260   --> $DIR/param-attrs-builtin-attrs.rs:109:9
261    |
262 LL |         /// Bar
263    |         ^^^^^^^ doc comments are not allowed here
264
265 error: documentation comments cannot be applied to function parameters
266   --> $DIR/param-attrs-builtin-attrs.rs:113:9
267    |
268 LL |         /// Baz
269    |         ^^^^^^^ doc comments are not allowed here
270
271 error: allow, cfg, cfg_attr, deny, expect, forbid, and warn are the only allowed built-in attributes in function parameters
272   --> $DIR/param-attrs-builtin-attrs.rs:115:9
273    |
274 LL |         #[must_use]
275    |         ^^^^^^^^^^^
276
277 error: documentation comments cannot be applied to function parameters
278   --> $DIR/param-attrs-builtin-attrs.rs:117:9
279    |
280 LL |         /// Qux
281    |         ^^^^^^^ doc comments are not allowed here
282
283 error: allow, cfg, cfg_attr, deny, expect, forbid, and warn are the only allowed built-in attributes in function parameters
284   --> $DIR/param-attrs-builtin-attrs.rs:119:9
285    |
286 LL |         #[no_mangle] b: i32,
287    |         ^^^^^^^^^^^^
288
289 error: documentation comments cannot be applied to function parameters
290   --> $DIR/param-attrs-builtin-attrs.rs:124:9
291    |
292 LL |         /// Foo
293    |         ^^^^^^^ doc comments are not allowed here
294
295 error: documentation comments cannot be applied to function parameters
296   --> $DIR/param-attrs-builtin-attrs.rs:128:9
297    |
298 LL |         /// Baz
299    |         ^^^^^^^ doc comments are not allowed here
300
301 error: allow, cfg, cfg_attr, deny, expect, forbid, and warn are the only allowed built-in attributes in function parameters
302   --> $DIR/param-attrs-builtin-attrs.rs:130:9
303    |
304 LL |         #[must_use]
305    |         ^^^^^^^^^^^
306
307 error: documentation comments cannot be applied to function parameters
308   --> $DIR/param-attrs-builtin-attrs.rs:132:9
309    |
310 LL |         /// Qux
311    |         ^^^^^^^ doc comments are not allowed here
312
313 error: allow, cfg, cfg_attr, deny, expect, forbid, and warn are the only allowed built-in attributes in function parameters
314   --> $DIR/param-attrs-builtin-attrs.rs:134:9
315    |
316 LL |         #[no_mangle] b: i32,
317    |         ^^^^^^^^^^^^
318
319 error: documentation comments cannot be applied to function parameters
320   --> $DIR/param-attrs-builtin-attrs.rs:141:9
321    |
322 LL |         /// Foo
323    |         ^^^^^^^ doc comments are not allowed here
324
325 error: documentation comments cannot be applied to function parameters
326   --> $DIR/param-attrs-builtin-attrs.rs:144:9
327    |
328 LL |         /// Bar
329    |         ^^^^^^^ doc comments are not allowed here
330
331 error: documentation comments cannot be applied to function parameters
332   --> $DIR/param-attrs-builtin-attrs.rs:148:9
333    |
334 LL |         /// Baz
335    |         ^^^^^^^ doc comments are not allowed here
336
337 error: allow, cfg, cfg_attr, deny, expect, forbid, and warn are the only allowed built-in attributes in function parameters
338   --> $DIR/param-attrs-builtin-attrs.rs:150:9
339    |
340 LL |         #[must_use]
341    |         ^^^^^^^^^^^
342
343 error: documentation comments cannot be applied to function parameters
344   --> $DIR/param-attrs-builtin-attrs.rs:152:9
345    |
346 LL |         /// Qux
347    |         ^^^^^^^ doc comments are not allowed here
348
349 error: allow, cfg, cfg_attr, deny, expect, forbid, and warn are the only allowed built-in attributes in function parameters
350   --> $DIR/param-attrs-builtin-attrs.rs:154:9
351    |
352 LL |         #[no_mangle] b: i32,
353    |         ^^^^^^^^^^^^
354
355 error: documentation comments cannot be applied to function parameters
356   --> $DIR/param-attrs-builtin-attrs.rs:161:9
357    |
358 LL |         /// Foo
359    |         ^^^^^^^ doc comments are not allowed here
360
361 error: documentation comments cannot be applied to function parameters
362   --> $DIR/param-attrs-builtin-attrs.rs:165:9
363    |
364 LL |         /// Bar
365    |         ^^^^^^^ doc comments are not allowed here
366
367 error: allow, cfg, cfg_attr, deny, expect, forbid, and warn are the only allowed built-in attributes in function parameters
368   --> $DIR/param-attrs-builtin-attrs.rs:167:9
369    |
370 LL |         #[must_use]
371    |         ^^^^^^^^^^^
372
373 error: documentation comments cannot be applied to function parameters
374   --> $DIR/param-attrs-builtin-attrs.rs:169:9
375    |
376 LL |         /// Baz
377    |         ^^^^^^^ doc comments are not allowed here
378
379 error: allow, cfg, cfg_attr, deny, expect, forbid, and warn are the only allowed built-in attributes in function parameters
380   --> $DIR/param-attrs-builtin-attrs.rs:171:9
381    |
382 LL |         #[no_mangle] b: i32
383    |         ^^^^^^^^^^^^
384
385 error: aborting due to 64 previous errors
386