]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2565-param-attrs/param-attrs-builtin-attrs.stderr
Auto merge of #62339 - pnkfelix:issue-61188-use-visitor-for-structural-match-check...
[rust.git] / src / test / ui / rfc-2565-param-attrs / param-attrs-builtin-attrs.stderr
1 error: documentation comments cannot be applied to function parameters
2   --> $DIR/param-attrs-builtin-attrs.rs:5:9
3    |
4 LL |         /// Foo
5    |         ^^^^^^^ doc comments are not allowed here
6
7 error: documentation comments cannot be applied to function parameters
8   --> $DIR/param-attrs-builtin-attrs.rs:9:9
9    |
10 LL |         /// Bar
11    |         ^^^^^^^ doc comments are not allowed here
12
13 error: allow, cfg, cfg_attr, deny, forbid, and warn are the only allowed built-in attributes in function parameters
14   --> $DIR/param-attrs-builtin-attrs.rs:11:9
15    |
16 LL |         #[must_use]
17    |         ^^^^^^^^^^^
18
19 error: documentation comments cannot be applied to function parameters
20   --> $DIR/param-attrs-builtin-attrs.rs:13:9
21    |
22 LL |         /// Baz
23    |         ^^^^^^^ doc comments are not allowed here
24
25 error: allow, cfg, cfg_attr, deny, forbid, and warn are the only allowed built-in attributes in function parameters
26   --> $DIR/param-attrs-builtin-attrs.rs:15:9
27    |
28 LL |         #[no_mangle] b: i32,
29    |         ^^^^^^^^^^^^
30
31 error: documentation comments cannot be applied to function parameters
32   --> $DIR/param-attrs-builtin-attrs.rs:21:5
33    |
34 LL |     /// Foo
35    |     ^^^^^^^ doc comments are not allowed here
36
37 error: documentation comments cannot be applied to function parameters
38   --> $DIR/param-attrs-builtin-attrs.rs:25:5
39    |
40 LL |     /// Bar
41    |     ^^^^^^^ doc comments are not allowed here
42
43 error: allow, cfg, cfg_attr, deny, forbid, and warn are the only allowed built-in attributes in function parameters
44   --> $DIR/param-attrs-builtin-attrs.rs:27:5
45    |
46 LL |     #[must_use]
47    |     ^^^^^^^^^^^
48
49 error: documentation comments cannot be applied to function parameters
50   --> $DIR/param-attrs-builtin-attrs.rs:29:5
51    |
52 LL |     /// Baz
53    |     ^^^^^^^ doc comments are not allowed here
54
55 error: allow, cfg, cfg_attr, deny, forbid, and warn are the only allowed built-in attributes in function parameters
56   --> $DIR/param-attrs-builtin-attrs.rs:31:5
57    |
58 LL |     #[no_mangle] b: i32,
59    |     ^^^^^^^^^^^^
60
61 error: documentation comments cannot be applied to function parameters
62   --> $DIR/param-attrs-builtin-attrs.rs:36:5
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:40:5
69    |
70 LL |     /// Bar
71    |     ^^^^^^^ doc comments are not allowed here
72
73 error: allow, cfg, cfg_attr, deny, forbid, and warn are the only allowed built-in attributes in function parameters
74   --> $DIR/param-attrs-builtin-attrs.rs:42:5
75    |
76 LL |     #[must_use]
77    |     ^^^^^^^^^^^
78
79 error: documentation comments cannot be applied to function parameters
80   --> $DIR/param-attrs-builtin-attrs.rs:44:5
81    |
82 LL |     /// Baz
83    |     ^^^^^^^ doc comments are not allowed here
84
85 error: allow, cfg, cfg_attr, deny, forbid, and warn are the only allowed built-in attributes in function parameters
86   --> $DIR/param-attrs-builtin-attrs.rs:46:5
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:53:9
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:56:9
99    |
100 LL |         /// Bar
101    |         ^^^^^^^ doc comments are not allowed here
102
103 error: documentation comments cannot be applied to function parameters
104   --> $DIR/param-attrs-builtin-attrs.rs:60:9
105    |
106 LL |         /// Baz
107    |         ^^^^^^^ doc comments are not allowed here
108
109 error: allow, cfg, cfg_attr, deny, forbid, and warn are the only allowed built-in attributes in function parameters
110   --> $DIR/param-attrs-builtin-attrs.rs:62:9
111    |
112 LL |         #[must_use]
113    |         ^^^^^^^^^^^
114
115 error: documentation comments cannot be applied to function parameters
116   --> $DIR/param-attrs-builtin-attrs.rs:64:9
117    |
118 LL |         /// Qux
119    |         ^^^^^^^ doc comments are not allowed here
120
121 error: allow, cfg, cfg_attr, deny, forbid, and warn are the only allowed built-in attributes in function parameters
122   --> $DIR/param-attrs-builtin-attrs.rs:66:9
123    |
124 LL |         #[no_mangle] b: i32,
125    |         ^^^^^^^^^^^^
126
127 error: documentation comments cannot be applied to function parameters
128   --> $DIR/param-attrs-builtin-attrs.rs:74:9
129    |
130 LL |         /// Foo
131    |         ^^^^^^^ doc comments are not allowed here
132
133 error: documentation comments cannot be applied to function parameters
134   --> $DIR/param-attrs-builtin-attrs.rs:77:9
135    |
136 LL |         /// Bar
137    |         ^^^^^^^ doc comments are not allowed here
138
139 error: documentation comments cannot be applied to function parameters
140   --> $DIR/param-attrs-builtin-attrs.rs:81:9
141    |
142 LL |         /// Baz
143    |         ^^^^^^^ doc comments are not allowed here
144
145 error: allow, cfg, cfg_attr, deny, forbid, and warn are the only allowed built-in attributes in function parameters
146   --> $DIR/param-attrs-builtin-attrs.rs:83:9
147    |
148 LL |         #[must_use]
149    |         ^^^^^^^^^^^
150
151 error: documentation comments cannot be applied to function parameters
152   --> $DIR/param-attrs-builtin-attrs.rs:85:9
153    |
154 LL |         /// Qux
155    |         ^^^^^^^ doc comments are not allowed here
156
157 error: allow, cfg, cfg_attr, deny, forbid, and warn are the only allowed built-in attributes in function parameters
158   --> $DIR/param-attrs-builtin-attrs.rs:87:9
159    |
160 LL |         #[no_mangle] b: i32,
161    |         ^^^^^^^^^^^^
162
163 error: documentation comments cannot be applied to function parameters
164   --> $DIR/param-attrs-builtin-attrs.rs:93:9
165    |
166 LL |         /// Foo
167    |         ^^^^^^^ doc comments are not allowed here
168
169 error: documentation comments cannot be applied to function parameters
170   --> $DIR/param-attrs-builtin-attrs.rs:96:9
171    |
172 LL |         /// Bar
173    |         ^^^^^^^ doc comments are not allowed here
174
175 error: documentation comments cannot be applied to function parameters
176   --> $DIR/param-attrs-builtin-attrs.rs:100:9
177    |
178 LL |         /// Baz
179    |         ^^^^^^^ doc comments are not allowed here
180
181 error: allow, cfg, cfg_attr, deny, forbid, and warn are the only allowed built-in attributes in function parameters
182   --> $DIR/param-attrs-builtin-attrs.rs:102:9
183    |
184 LL |         #[must_use]
185    |         ^^^^^^^^^^^
186
187 error: documentation comments cannot be applied to function parameters
188   --> $DIR/param-attrs-builtin-attrs.rs:104:9
189    |
190 LL |         /// Qux
191    |         ^^^^^^^ doc comments are not allowed here
192
193 error: allow, cfg, cfg_attr, deny, forbid, and warn are the only allowed built-in attributes in function parameters
194   --> $DIR/param-attrs-builtin-attrs.rs:106:9
195    |
196 LL |         #[no_mangle] b: i32,
197    |         ^^^^^^^^^^^^
198
199 error: documentation comments cannot be applied to function parameters
200   --> $DIR/param-attrs-builtin-attrs.rs:112:9
201    |
202 LL |         /// Foo
203    |         ^^^^^^^ doc comments are not allowed here
204
205 error: documentation comments cannot be applied to function parameters
206   --> $DIR/param-attrs-builtin-attrs.rs:115:9
207    |
208 LL |         /// Bar
209    |         ^^^^^^^ doc comments are not allowed here
210
211 error: documentation comments cannot be applied to function parameters
212   --> $DIR/param-attrs-builtin-attrs.rs:119:9
213    |
214 LL |         /// Baz
215    |         ^^^^^^^ doc comments are not allowed here
216
217 error: allow, cfg, cfg_attr, deny, forbid, and warn are the only allowed built-in attributes in function parameters
218   --> $DIR/param-attrs-builtin-attrs.rs:121:9
219    |
220 LL |         #[must_use]
221    |         ^^^^^^^^^^^
222
223 error: documentation comments cannot be applied to function parameters
224   --> $DIR/param-attrs-builtin-attrs.rs:123:9
225    |
226 LL |         /// Qux
227    |         ^^^^^^^ doc comments are not allowed here
228
229 error: allow, cfg, cfg_attr, deny, forbid, and warn are the only allowed built-in attributes in function parameters
230   --> $DIR/param-attrs-builtin-attrs.rs:125:9
231    |
232 LL |         #[no_mangle] b: i32,
233    |         ^^^^^^^^^^^^
234
235 error: documentation comments cannot be applied to function parameters
236   --> $DIR/param-attrs-builtin-attrs.rs:132:9
237    |
238 LL |         /// Foo
239    |         ^^^^^^^ doc comments are not allowed here
240
241 error: documentation comments cannot be applied to function parameters
242   --> $DIR/param-attrs-builtin-attrs.rs:136:9
243    |
244 LL |         /// Bar
245    |         ^^^^^^^ doc comments are not allowed here
246
247 error: allow, cfg, cfg_attr, deny, forbid, and warn are the only allowed built-in attributes in function parameters
248   --> $DIR/param-attrs-builtin-attrs.rs:138:9
249    |
250 LL |         #[must_use]
251    |         ^^^^^^^^^^^
252
253 error: documentation comments cannot be applied to function parameters
254   --> $DIR/param-attrs-builtin-attrs.rs:140:9
255    |
256 LL |         /// Baz
257    |         ^^^^^^^ doc comments are not allowed here
258
259 error: allow, cfg, cfg_attr, deny, forbid, and warn are the only allowed built-in attributes in function parameters
260   --> $DIR/param-attrs-builtin-attrs.rs:142:9
261    |
262 LL |         #[no_mangle] b: i32
263    |         ^^^^^^^^^^^^
264
265 error[E0658]: The attribute `test` is currently unknown to the compiler and may have meaning added to it in the future
266   --> $DIR/param-attrs-builtin-attrs.rs:7:9
267    |
268 LL |         #[test] a: i32,
269    |         ^^^^^^^
270    |
271    = note: for more information, see https://github.com/rust-lang/rust/issues/29642
272    = help: add `#![feature(custom_attribute)]` to the crate attributes to enable
273
274 error[E0658]: The attribute `test` is currently unknown to the compiler and may have meaning added to it in the future
275   --> $DIR/param-attrs-builtin-attrs.rs:23:5
276    |
277 LL |     #[test] a: u32,
278    |     ^^^^^^^
279    |
280    = note: for more information, see https://github.com/rust-lang/rust/issues/29642
281    = help: add `#![feature(custom_attribute)]` to the crate attributes to enable
282
283 error[E0658]: The attribute `test` is currently unknown to the compiler and may have meaning added to it in the future
284   --> $DIR/param-attrs-builtin-attrs.rs:38:5
285    |
286 LL |     #[test] a: u32,
287    |     ^^^^^^^
288    |
289    = note: for more information, see https://github.com/rust-lang/rust/issues/29642
290    = help: add `#![feature(custom_attribute)]` to the crate attributes to enable
291
292 error[E0658]: The attribute `test` is currently unknown to the compiler and may have meaning added to it in the future
293   --> $DIR/param-attrs-builtin-attrs.rs:58:9
294    |
295 LL |         #[test] a: i32,
296    |         ^^^^^^^
297    |
298    = note: for more information, see https://github.com/rust-lang/rust/issues/29642
299    = help: add `#![feature(custom_attribute)]` to the crate attributes to enable
300
301 error[E0658]: The attribute `test` is currently unknown to the compiler and may have meaning added to it in the future
302   --> $DIR/param-attrs-builtin-attrs.rs:79:9
303    |
304 LL |         #[test] a: i32,
305    |         ^^^^^^^
306    |
307    = note: for more information, see https://github.com/rust-lang/rust/issues/29642
308    = help: add `#![feature(custom_attribute)]` to the crate attributes to enable
309
310 error[E0658]: The attribute `test` is currently unknown to the compiler and may have meaning added to it in the future
311   --> $DIR/param-attrs-builtin-attrs.rs:98:9
312    |
313 LL |         #[test] a: i32,
314    |         ^^^^^^^
315    |
316    = note: for more information, see https://github.com/rust-lang/rust/issues/29642
317    = help: add `#![feature(custom_attribute)]` to the crate attributes to enable
318
319 error[E0658]: The attribute `test` is currently unknown to the compiler and may have meaning added to it in the future
320   --> $DIR/param-attrs-builtin-attrs.rs:117:9
321    |
322 LL |         #[test] a: i32,
323    |         ^^^^^^^
324    |
325    = note: for more information, see https://github.com/rust-lang/rust/issues/29642
326    = help: add `#![feature(custom_attribute)]` to the crate attributes to enable
327
328 error[E0658]: The attribute `test` is currently unknown to the compiler and may have meaning added to it in the future
329   --> $DIR/param-attrs-builtin-attrs.rs:134:9
330    |
331 LL |         #[test] a: u32,
332    |         ^^^^^^^
333    |
334    = note: for more information, see https://github.com/rust-lang/rust/issues/29642
335    = help: add `#![feature(custom_attribute)]` to the crate attributes to enable
336
337 error: aborting due to 52 previous errors
338
339 For more information about this error, try `rustc --explain E0658`.