]> git.proxmox.com Git - rustc.git/blame - src/test/ui/macros/macro-follow.stderr
New upstream version 1.34.2+dfsg1
[rustc.git] / src / test / ui / macros / macro-follow.stderr
CommitLineData
b7449926 1error: `$p:pat` is followed by `(`, which is not allowed for `pat` fragments
0731742a 2 --> $DIR/macro-follow.rs:8:14
b7449926
XL
3 |
4LL | ($p:pat ()) => {}; //~ERROR `$p:pat` is followed by `(`
a1dfa0c6
XL
5 | ^ not allowed after `pat` fragments
6 |
7 = note: allowed there are: `=>`, `,`, `=`, `|`, `if` or `in`
b7449926
XL
8
9error: `$p:pat` is followed by `[`, which is not allowed for `pat` fragments
0731742a 10 --> $DIR/macro-follow.rs:9:14
b7449926
XL
11 |
12LL | ($p:pat []) => {}; //~ERROR `$p:pat` is followed by `[`
a1dfa0c6
XL
13 | ^ not allowed after `pat` fragments
14 |
15 = note: allowed there are: `=>`, `,`, `=`, `|`, `if` or `in`
b7449926
XL
16
17error: `$p:pat` is followed by `{`, which is not allowed for `pat` fragments
0731742a 18 --> $DIR/macro-follow.rs:10:14
b7449926
XL
19 |
20LL | ($p:pat {}) => {}; //~ERROR `$p:pat` is followed by `{`
a1dfa0c6
XL
21 | ^ not allowed after `pat` fragments
22 |
23 = note: allowed there are: `=>`, `,`, `=`, `|`, `if` or `in`
b7449926
XL
24
25error: `$p:pat` is followed by `:`, which is not allowed for `pat` fragments
0731742a 26 --> $DIR/macro-follow.rs:11:13
b7449926
XL
27 |
28LL | ($p:pat :) => {}; //~ERROR `$p:pat` is followed by `:`
a1dfa0c6
XL
29 | ^ not allowed after `pat` fragments
30 |
31 = note: allowed there are: `=>`, `,`, `=`, `|`, `if` or `in`
b7449926
XL
32
33error: `$p:pat` is followed by `>`, which is not allowed for `pat` fragments
0731742a 34 --> $DIR/macro-follow.rs:12:13
b7449926
XL
35 |
36LL | ($p:pat >) => {}; //~ERROR `$p:pat` is followed by `>`
a1dfa0c6
XL
37 | ^ not allowed after `pat` fragments
38 |
39 = note: allowed there are: `=>`, `,`, `=`, `|`, `if` or `in`
b7449926
XL
40
41error: `$p:pat` is followed by `+`, which is not allowed for `pat` fragments
0731742a 42 --> $DIR/macro-follow.rs:13:13
b7449926
XL
43 |
44LL | ($p:pat +) => {}; //~ERROR `$p:pat` is followed by `+`
a1dfa0c6
XL
45 | ^ not allowed after `pat` fragments
46 |
47 = note: allowed there are: `=>`, `,`, `=`, `|`, `if` or `in`
b7449926
XL
48
49error: `$p:pat` is followed by `ident`, which is not allowed for `pat` fragments
0731742a 50 --> $DIR/macro-follow.rs:14:13
b7449926
XL
51 |
52LL | ($p:pat ident) => {}; //~ERROR `$p:pat` is followed by `ident`
a1dfa0c6
XL
53 | ^^^^^ not allowed after `pat` fragments
54 |
55 = note: allowed there are: `=>`, `,`, `=`, `|`, `if` or `in`
b7449926 56
9fa01778 57error: `$p:pat` is followed by `$q:pat`, which is not allowed for `pat` fragments
0731742a 58 --> $DIR/macro-follow.rs:15:13
b7449926 59 |
9fa01778 60LL | ($p:pat $q:pat) => {}; //~ERROR `$p:pat` is followed by `$q:pat`
a1dfa0c6
XL
61 | ^^^^^^ not allowed after `pat` fragments
62 |
63 = note: allowed there are: `=>`, `,`, `=`, `|`, `if` or `in`
b7449926
XL
64
65error: `$p:pat` is followed by `$e:expr`, which is not allowed for `pat` fragments
0731742a 66 --> $DIR/macro-follow.rs:16:13
b7449926
XL
67 |
68LL | ($p:pat $e:expr) => {}; //~ERROR `$p:pat` is followed by `$e:expr`
a1dfa0c6
XL
69 | ^^^^^^^ not allowed after `pat` fragments
70 |
71 = note: allowed there are: `=>`, `,`, `=`, `|`, `if` or `in`
b7449926
XL
72
73error: `$p:pat` is followed by `$t:ty`, which is not allowed for `pat` fragments
0731742a 74 --> $DIR/macro-follow.rs:17:13
b7449926
XL
75 |
76LL | ($p:pat $t:ty) => {}; //~ERROR `$p:pat` is followed by `$t:ty`
a1dfa0c6
XL
77 | ^^^^^ not allowed after `pat` fragments
78 |
79 = note: allowed there are: `=>`, `,`, `=`, `|`, `if` or `in`
b7449926
XL
80
81error: `$p:pat` is followed by `$s:stmt`, which is not allowed for `pat` fragments
0731742a 82 --> $DIR/macro-follow.rs:18:13
b7449926
XL
83 |
84LL | ($p:pat $s:stmt) => {}; //~ERROR `$p:pat` is followed by `$s:stmt`
a1dfa0c6
XL
85 | ^^^^^^^ not allowed after `pat` fragments
86 |
87 = note: allowed there are: `=>`, `,`, `=`, `|`, `if` or `in`
b7449926 88
9fa01778 89error: `$p:pat` is followed by `$q:path`, which is not allowed for `pat` fragments
0731742a 90 --> $DIR/macro-follow.rs:19:13
b7449926 91 |
9fa01778 92LL | ($p:pat $q:path) => {}; //~ERROR `$p:pat` is followed by `$q:path`
a1dfa0c6
XL
93 | ^^^^^^^ not allowed after `pat` fragments
94 |
95 = note: allowed there are: `=>`, `,`, `=`, `|`, `if` or `in`
b7449926
XL
96
97error: `$p:pat` is followed by `$b:block`, which is not allowed for `pat` fragments
0731742a 98 --> $DIR/macro-follow.rs:20:13
b7449926
XL
99 |
100LL | ($p:pat $b:block) => {}; //~ERROR `$p:pat` is followed by `$b:block`
a1dfa0c6
XL
101 | ^^^^^^^^ not allowed after `pat` fragments
102 |
103 = note: allowed there are: `=>`, `,`, `=`, `|`, `if` or `in`
b7449926
XL
104
105error: `$p:pat` is followed by `$i:ident`, which is not allowed for `pat` fragments
0731742a 106 --> $DIR/macro-follow.rs:21:13
b7449926
XL
107 |
108LL | ($p:pat $i:ident) => {}; //~ERROR `$p:pat` is followed by `$i:ident`
a1dfa0c6
XL
109 | ^^^^^^^^ not allowed after `pat` fragments
110 |
111 = note: allowed there are: `=>`, `,`, `=`, `|`, `if` or `in`
b7449926
XL
112
113error: `$p:pat` is followed by `$t:tt`, which is not allowed for `pat` fragments
0731742a 114 --> $DIR/macro-follow.rs:22:13
b7449926
XL
115 |
116LL | ($p:pat $t:tt) => {}; //~ERROR `$p:pat` is followed by `$t:tt`
a1dfa0c6
XL
117 | ^^^^^ not allowed after `pat` fragments
118 |
119 = note: allowed there are: `=>`, `,`, `=`, `|`, `if` or `in`
b7449926
XL
120
121error: `$p:pat` is followed by `$i:item`, which is not allowed for `pat` fragments
0731742a 122 --> $DIR/macro-follow.rs:23:13
b7449926
XL
123 |
124LL | ($p:pat $i:item) => {}; //~ERROR `$p:pat` is followed by `$i:item`
a1dfa0c6
XL
125 | ^^^^^^^ not allowed after `pat` fragments
126 |
127 = note: allowed there are: `=>`, `,`, `=`, `|`, `if` or `in`
b7449926
XL
128
129error: `$p:pat` is followed by `$m:meta`, which is not allowed for `pat` fragments
0731742a 130 --> $DIR/macro-follow.rs:24:13
b7449926
XL
131 |
132LL | ($p:pat $m:meta) => {}; //~ERROR `$p:pat` is followed by `$m:meta`
a1dfa0c6
XL
133 | ^^^^^^^ not allowed after `pat` fragments
134 |
135 = note: allowed there are: `=>`, `,`, `=`, `|`, `if` or `in`
b7449926
XL
136
137error: `$e:expr` is followed by `(`, which is not allowed for `expr` fragments
0731742a 138 --> $DIR/macro-follow.rs:28:15
b7449926
XL
139 |
140LL | ($e:expr ()) => {}; //~ERROR `$e:expr` is followed by `(`
a1dfa0c6
XL
141 | ^ not allowed after `expr` fragments
142 |
143 = note: allowed there are: `=>`, `,` or `;`
b7449926
XL
144
145error: `$e:expr` is followed by `[`, which is not allowed for `expr` fragments
0731742a 146 --> $DIR/macro-follow.rs:29:15
b7449926
XL
147 |
148LL | ($e:expr []) => {}; //~ERROR `$e:expr` is followed by `[`
a1dfa0c6
XL
149 | ^ not allowed after `expr` fragments
150 |
151 = note: allowed there are: `=>`, `,` or `;`
b7449926
XL
152
153error: `$e:expr` is followed by `{`, which is not allowed for `expr` fragments
0731742a 154 --> $DIR/macro-follow.rs:30:15
b7449926
XL
155 |
156LL | ($e:expr {}) => {}; //~ERROR `$e:expr` is followed by `{`
a1dfa0c6
XL
157 | ^ not allowed after `expr` fragments
158 |
159 = note: allowed there are: `=>`, `,` or `;`
b7449926
XL
160
161error: `$e:expr` is followed by `=`, which is not allowed for `expr` fragments
0731742a 162 --> $DIR/macro-follow.rs:31:14
b7449926
XL
163 |
164LL | ($e:expr =) => {}; //~ERROR `$e:expr` is followed by `=`
a1dfa0c6
XL
165 | ^ not allowed after `expr` fragments
166 |
167 = note: allowed there are: `=>`, `,` or `;`
b7449926
XL
168
169error: `$e:expr` is followed by `|`, which is not allowed for `expr` fragments
0731742a 170 --> $DIR/macro-follow.rs:32:14
b7449926
XL
171 |
172LL | ($e:expr |) => {}; //~ERROR `$e:expr` is followed by `|`
a1dfa0c6
XL
173 | ^ not allowed after `expr` fragments
174 |
175 = note: allowed there are: `=>`, `,` or `;`
b7449926
XL
176
177error: `$e:expr` is followed by `:`, which is not allowed for `expr` fragments
0731742a 178 --> $DIR/macro-follow.rs:33:14
b7449926
XL
179 |
180LL | ($e:expr :) => {}; //~ERROR `$e:expr` is followed by `:`
a1dfa0c6
XL
181 | ^ not allowed after `expr` fragments
182 |
183 = note: allowed there are: `=>`, `,` or `;`
b7449926
XL
184
185error: `$e:expr` is followed by `>`, which is not allowed for `expr` fragments
0731742a 186 --> $DIR/macro-follow.rs:34:14
b7449926
XL
187 |
188LL | ($e:expr >) => {}; //~ERROR `$e:expr` is followed by `>`
a1dfa0c6
XL
189 | ^ not allowed after `expr` fragments
190 |
191 = note: allowed there are: `=>`, `,` or `;`
b7449926
XL
192
193error: `$e:expr` is followed by `+`, which is not allowed for `expr` fragments
0731742a 194 --> $DIR/macro-follow.rs:35:14
b7449926
XL
195 |
196LL | ($e:expr +) => {}; //~ERROR `$e:expr` is followed by `+`
a1dfa0c6
XL
197 | ^ not allowed after `expr` fragments
198 |
199 = note: allowed there are: `=>`, `,` or `;`
b7449926
XL
200
201error: `$e:expr` is followed by `ident`, which is not allowed for `expr` fragments
0731742a 202 --> $DIR/macro-follow.rs:36:14
b7449926
XL
203 |
204LL | ($e:expr ident) => {}; //~ERROR `$e:expr` is followed by `ident`
a1dfa0c6
XL
205 | ^^^^^ not allowed after `expr` fragments
206 |
207 = note: allowed there are: `=>`, `,` or `;`
b7449926
XL
208
209error: `$e:expr` is followed by `if`, which is not allowed for `expr` fragments
0731742a 210 --> $DIR/macro-follow.rs:37:14
b7449926
XL
211 |
212LL | ($e:expr if) => {}; //~ERROR `$e:expr` is followed by `if`
a1dfa0c6
XL
213 | ^^ not allowed after `expr` fragments
214 |
215 = note: allowed there are: `=>`, `,` or `;`
b7449926
XL
216
217error: `$e:expr` is followed by `in`, which is not allowed for `expr` fragments
0731742a 218 --> $DIR/macro-follow.rs:38:14
b7449926
XL
219 |
220LL | ($e:expr in) => {}; //~ERROR `$e:expr` is followed by `in`
a1dfa0c6
XL
221 | ^^ not allowed after `expr` fragments
222 |
223 = note: allowed there are: `=>`, `,` or `;`
b7449926
XL
224
225error: `$e:expr` is followed by `$p:pat`, which is not allowed for `expr` fragments
0731742a 226 --> $DIR/macro-follow.rs:39:14
b7449926
XL
227 |
228LL | ($e:expr $p:pat) => {}; //~ERROR `$e:expr` is followed by `$p:pat`
a1dfa0c6
XL
229 | ^^^^^^ not allowed after `expr` fragments
230 |
231 = note: allowed there are: `=>`, `,` or `;`
b7449926 232
9fa01778 233error: `$e:expr` is followed by `$f:expr`, which is not allowed for `expr` fragments
0731742a 234 --> $DIR/macro-follow.rs:40:14
b7449926 235 |
9fa01778 236LL | ($e:expr $f:expr) => {}; //~ERROR `$e:expr` is followed by `$f:expr`
a1dfa0c6
XL
237 | ^^^^^^^ not allowed after `expr` fragments
238 |
239 = note: allowed there are: `=>`, `,` or `;`
b7449926
XL
240
241error: `$e:expr` is followed by `$t:ty`, which is not allowed for `expr` fragments
0731742a 242 --> $DIR/macro-follow.rs:41:14
b7449926
XL
243 |
244LL | ($e:expr $t:ty) => {}; //~ERROR `$e:expr` is followed by `$t:ty`
a1dfa0c6
XL
245 | ^^^^^ not allowed after `expr` fragments
246 |
247 = note: allowed there are: `=>`, `,` or `;`
b7449926
XL
248
249error: `$e:expr` is followed by `$s:stmt`, which is not allowed for `expr` fragments
0731742a 250 --> $DIR/macro-follow.rs:42:14
b7449926
XL
251 |
252LL | ($e:expr $s:stmt) => {}; //~ERROR `$e:expr` is followed by `$s:stmt`
a1dfa0c6
XL
253 | ^^^^^^^ not allowed after `expr` fragments
254 |
255 = note: allowed there are: `=>`, `,` or `;`
b7449926
XL
256
257error: `$e:expr` is followed by `$p:path`, which is not allowed for `expr` fragments
0731742a 258 --> $DIR/macro-follow.rs:43:14
b7449926
XL
259 |
260LL | ($e:expr $p:path) => {}; //~ERROR `$e:expr` is followed by `$p:path`
a1dfa0c6
XL
261 | ^^^^^^^ not allowed after `expr` fragments
262 |
263 = note: allowed there are: `=>`, `,` or `;`
b7449926
XL
264
265error: `$e:expr` is followed by `$b:block`, which is not allowed for `expr` fragments
0731742a 266 --> $DIR/macro-follow.rs:44:14
b7449926
XL
267 |
268LL | ($e:expr $b:block) => {}; //~ERROR `$e:expr` is followed by `$b:block`
a1dfa0c6
XL
269 | ^^^^^^^^ not allowed after `expr` fragments
270 |
271 = note: allowed there are: `=>`, `,` or `;`
b7449926
XL
272
273error: `$e:expr` is followed by `$i:ident`, which is not allowed for `expr` fragments
0731742a 274 --> $DIR/macro-follow.rs:45:14
b7449926
XL
275 |
276LL | ($e:expr $i:ident) => {}; //~ERROR `$e:expr` is followed by `$i:ident`
a1dfa0c6
XL
277 | ^^^^^^^^ not allowed after `expr` fragments
278 |
279 = note: allowed there are: `=>`, `,` or `;`
b7449926
XL
280
281error: `$e:expr` is followed by `$t:tt`, which is not allowed for `expr` fragments
0731742a 282 --> $DIR/macro-follow.rs:46:14
b7449926
XL
283 |
284LL | ($e:expr $t:tt) => {}; //~ERROR `$e:expr` is followed by `$t:tt`
a1dfa0c6
XL
285 | ^^^^^ not allowed after `expr` fragments
286 |
287 = note: allowed there are: `=>`, `,` or `;`
b7449926
XL
288
289error: `$e:expr` is followed by `$i:item`, which is not allowed for `expr` fragments
0731742a 290 --> $DIR/macro-follow.rs:47:14
b7449926
XL
291 |
292LL | ($e:expr $i:item) => {}; //~ERROR `$e:expr` is followed by `$i:item`
a1dfa0c6
XL
293 | ^^^^^^^ not allowed after `expr` fragments
294 |
295 = note: allowed there are: `=>`, `,` or `;`
b7449926
XL
296
297error: `$e:expr` is followed by `$m:meta`, which is not allowed for `expr` fragments
0731742a 298 --> $DIR/macro-follow.rs:48:14
b7449926
XL
299 |
300LL | ($e:expr $m:meta) => {}; //~ERROR `$e:expr` is followed by `$m:meta`
a1dfa0c6
XL
301 | ^^^^^^^ not allowed after `expr` fragments
302 |
303 = note: allowed there are: `=>`, `,` or `;`
b7449926
XL
304
305error: `$t:ty` is followed by `(`, which is not allowed for `ty` fragments
0731742a 306 --> $DIR/macro-follow.rs:53:13
b7449926
XL
307 |
308LL | ($t:ty ()) => {}; //~ERROR `$t:ty` is followed by `(`
a1dfa0c6
XL
309 | ^ not allowed after `ty` fragments
310 |
311 = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
b7449926
XL
312
313error: `$t:ty` is followed by `+`, which is not allowed for `ty` fragments
0731742a 314 --> $DIR/macro-follow.rs:55:12
b7449926
XL
315 |
316LL | ($t:ty +) => {}; //~ERROR `$t:ty` is followed by `+`
a1dfa0c6
XL
317 | ^ not allowed after `ty` fragments
318 |
319 = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
b7449926
XL
320
321error: `$t:ty` is followed by `ident`, which is not allowed for `ty` fragments
0731742a 322 --> $DIR/macro-follow.rs:56:12
b7449926
XL
323 |
324LL | ($t:ty ident) => {}; //~ERROR `$t:ty` is followed by `ident`
a1dfa0c6
XL
325 | ^^^^^ not allowed after `ty` fragments
326 |
327 = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
b7449926
XL
328
329error: `$t:ty` is followed by `if`, which is not allowed for `ty` fragments
0731742a 330 --> $DIR/macro-follow.rs:57:12
b7449926
XL
331 |
332LL | ($t:ty if) => {}; //~ERROR `$t:ty` is followed by `if`
a1dfa0c6
XL
333 | ^^ not allowed after `ty` fragments
334 |
335 = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
b7449926
XL
336
337error: `$t:ty` is followed by `$p:pat`, which is not allowed for `ty` fragments
0731742a 338 --> $DIR/macro-follow.rs:58:12
b7449926
XL
339 |
340LL | ($t:ty $p:pat) => {}; //~ERROR `$t:ty` is followed by `$p:pat`
a1dfa0c6
XL
341 | ^^^^^^ not allowed after `ty` fragments
342 |
343 = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
b7449926
XL
344
345error: `$t:ty` is followed by `$e:expr`, which is not allowed for `ty` fragments
0731742a 346 --> $DIR/macro-follow.rs:59:12
b7449926
XL
347 |
348LL | ($t:ty $e:expr) => {}; //~ERROR `$t:ty` is followed by `$e:expr`
a1dfa0c6
XL
349 | ^^^^^^^ not allowed after `ty` fragments
350 |
351 = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
b7449926 352
9fa01778 353error: `$t:ty` is followed by `$r:ty`, which is not allowed for `ty` fragments
0731742a 354 --> $DIR/macro-follow.rs:60:12
b7449926 355 |
9fa01778 356LL | ($t:ty $r:ty) => {}; //~ERROR `$t:ty` is followed by `$r:ty`
a1dfa0c6
XL
357 | ^^^^^ not allowed after `ty` fragments
358 |
359 = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
b7449926
XL
360
361error: `$t:ty` is followed by `$s:stmt`, which is not allowed for `ty` fragments
0731742a 362 --> $DIR/macro-follow.rs:61:12
b7449926
XL
363 |
364LL | ($t:ty $s:stmt) => {}; //~ERROR `$t:ty` is followed by `$s:stmt`
a1dfa0c6
XL
365 | ^^^^^^^ not allowed after `ty` fragments
366 |
367 = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
b7449926
XL
368
369error: `$t:ty` is followed by `$p:path`, which is not allowed for `ty` fragments
0731742a 370 --> $DIR/macro-follow.rs:62:12
b7449926
XL
371 |
372LL | ($t:ty $p:path) => {}; //~ERROR `$t:ty` is followed by `$p:path`
a1dfa0c6
XL
373 | ^^^^^^^ not allowed after `ty` fragments
374 |
375 = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
b7449926
XL
376
377error: `$t:ty` is followed by `$i:ident`, which is not allowed for `ty` fragments
0731742a 378 --> $DIR/macro-follow.rs:64:12
b7449926
XL
379 |
380LL | ($t:ty $i:ident) => {}; //~ERROR `$t:ty` is followed by `$i:ident`
a1dfa0c6
XL
381 | ^^^^^^^^ not allowed after `ty` fragments
382 |
383 = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
b7449926 384
9fa01778 385error: `$t:ty` is followed by `$r:tt`, which is not allowed for `ty` fragments
0731742a 386 --> $DIR/macro-follow.rs:65:12
b7449926 387 |
9fa01778 388LL | ($t:ty $r:tt) => {}; //~ERROR `$t:ty` is followed by `$r:tt`
a1dfa0c6
XL
389 | ^^^^^ not allowed after `ty` fragments
390 |
391 = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
b7449926
XL
392
393error: `$t:ty` is followed by `$i:item`, which is not allowed for `ty` fragments
0731742a 394 --> $DIR/macro-follow.rs:66:12
b7449926
XL
395 |
396LL | ($t:ty $i:item) => {}; //~ERROR `$t:ty` is followed by `$i:item`
a1dfa0c6
XL
397 | ^^^^^^^ not allowed after `ty` fragments
398 |
399 = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
b7449926
XL
400
401error: `$t:ty` is followed by `$m:meta`, which is not allowed for `ty` fragments
0731742a 402 --> $DIR/macro-follow.rs:67:12
b7449926
XL
403 |
404LL | ($t:ty $m:meta) => {}; //~ERROR `$t:ty` is followed by `$m:meta`
a1dfa0c6
XL
405 | ^^^^^^^ not allowed after `ty` fragments
406 |
407 = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
b7449926
XL
408
409error: `$s:stmt` is followed by `(`, which is not allowed for `stmt` fragments
0731742a 410 --> $DIR/macro-follow.rs:71:15
b7449926
XL
411 |
412LL | ($s:stmt ()) => {}; //~ERROR `$s:stmt` is followed by `(`
a1dfa0c6
XL
413 | ^ not allowed after `stmt` fragments
414 |
415 = note: allowed there are: `=>`, `,` or `;`
b7449926
XL
416
417error: `$s:stmt` is followed by `[`, which is not allowed for `stmt` fragments
0731742a 418 --> $DIR/macro-follow.rs:72:15
b7449926
XL
419 |
420LL | ($s:stmt []) => {}; //~ERROR `$s:stmt` is followed by `[`
a1dfa0c6
XL
421 | ^ not allowed after `stmt` fragments
422 |
423 = note: allowed there are: `=>`, `,` or `;`
b7449926
XL
424
425error: `$s:stmt` is followed by `{`, which is not allowed for `stmt` fragments
0731742a 426 --> $DIR/macro-follow.rs:73:15
b7449926
XL
427 |
428LL | ($s:stmt {}) => {}; //~ERROR `$s:stmt` is followed by `{`
a1dfa0c6
XL
429 | ^ not allowed after `stmt` fragments
430 |
431 = note: allowed there are: `=>`, `,` or `;`
b7449926
XL
432
433error: `$s:stmt` is followed by `=`, which is not allowed for `stmt` fragments
0731742a 434 --> $DIR/macro-follow.rs:74:14
b7449926
XL
435 |
436LL | ($s:stmt =) => {}; //~ERROR `$s:stmt` is followed by `=`
a1dfa0c6
XL
437 | ^ not allowed after `stmt` fragments
438 |
439 = note: allowed there are: `=>`, `,` or `;`
b7449926
XL
440
441error: `$s:stmt` is followed by `|`, which is not allowed for `stmt` fragments
0731742a 442 --> $DIR/macro-follow.rs:75:14
b7449926
XL
443 |
444LL | ($s:stmt |) => {}; //~ERROR `$s:stmt` is followed by `|`
a1dfa0c6
XL
445 | ^ not allowed after `stmt` fragments
446 |
447 = note: allowed there are: `=>`, `,` or `;`
b7449926
XL
448
449error: `$s:stmt` is followed by `:`, which is not allowed for `stmt` fragments
0731742a 450 --> $DIR/macro-follow.rs:76:14
b7449926
XL
451 |
452LL | ($s:stmt :) => {}; //~ERROR `$s:stmt` is followed by `:`
a1dfa0c6
XL
453 | ^ not allowed after `stmt` fragments
454 |
455 = note: allowed there are: `=>`, `,` or `;`
b7449926
XL
456
457error: `$s:stmt` is followed by `>`, which is not allowed for `stmt` fragments
0731742a 458 --> $DIR/macro-follow.rs:77:14
b7449926
XL
459 |
460LL | ($s:stmt >) => {}; //~ERROR `$s:stmt` is followed by `>`
a1dfa0c6
XL
461 | ^ not allowed after `stmt` fragments
462 |
463 = note: allowed there are: `=>`, `,` or `;`
b7449926
XL
464
465error: `$s:stmt` is followed by `+`, which is not allowed for `stmt` fragments
0731742a 466 --> $DIR/macro-follow.rs:78:14
b7449926
XL
467 |
468LL | ($s:stmt +) => {}; //~ERROR `$s:stmt` is followed by `+`
a1dfa0c6
XL
469 | ^ not allowed after `stmt` fragments
470 |
471 = note: allowed there are: `=>`, `,` or `;`
b7449926
XL
472
473error: `$s:stmt` is followed by `ident`, which is not allowed for `stmt` fragments
0731742a 474 --> $DIR/macro-follow.rs:79:14
b7449926
XL
475 |
476LL | ($s:stmt ident) => {}; //~ERROR `$s:stmt` is followed by `ident`
a1dfa0c6
XL
477 | ^^^^^ not allowed after `stmt` fragments
478 |
479 = note: allowed there are: `=>`, `,` or `;`
b7449926
XL
480
481error: `$s:stmt` is followed by `if`, which is not allowed for `stmt` fragments
0731742a 482 --> $DIR/macro-follow.rs:80:14
b7449926
XL
483 |
484LL | ($s:stmt if) => {}; //~ERROR `$s:stmt` is followed by `if`
a1dfa0c6
XL
485 | ^^ not allowed after `stmt` fragments
486 |
487 = note: allowed there are: `=>`, `,` or `;`
b7449926
XL
488
489error: `$s:stmt` is followed by `in`, which is not allowed for `stmt` fragments
0731742a 490 --> $DIR/macro-follow.rs:81:14
b7449926
XL
491 |
492LL | ($s:stmt in) => {}; //~ERROR `$s:stmt` is followed by `in`
a1dfa0c6
XL
493 | ^^ not allowed after `stmt` fragments
494 |
495 = note: allowed there are: `=>`, `,` or `;`
b7449926
XL
496
497error: `$s:stmt` is followed by `$p:pat`, which is not allowed for `stmt` fragments
0731742a 498 --> $DIR/macro-follow.rs:82:14
b7449926
XL
499 |
500LL | ($s:stmt $p:pat) => {}; //~ERROR `$s:stmt` is followed by `$p:pat`
a1dfa0c6
XL
501 | ^^^^^^ not allowed after `stmt` fragments
502 |
503 = note: allowed there are: `=>`, `,` or `;`
b7449926
XL
504
505error: `$s:stmt` is followed by `$e:expr`, which is not allowed for `stmt` fragments
0731742a 506 --> $DIR/macro-follow.rs:83:14
b7449926
XL
507 |
508LL | ($s:stmt $e:expr) => {}; //~ERROR `$s:stmt` is followed by `$e:expr`
a1dfa0c6
XL
509 | ^^^^^^^ not allowed after `stmt` fragments
510 |
511 = note: allowed there are: `=>`, `,` or `;`
b7449926
XL
512
513error: `$s:stmt` is followed by `$t:ty`, which is not allowed for `stmt` fragments
0731742a 514 --> $DIR/macro-follow.rs:84:14
b7449926
XL
515 |
516LL | ($s:stmt $t:ty) => {}; //~ERROR `$s:stmt` is followed by `$t:ty`
a1dfa0c6
XL
517 | ^^^^^ not allowed after `stmt` fragments
518 |
519 = note: allowed there are: `=>`, `,` or `;`
b7449926 520
9fa01778 521error: `$s:stmt` is followed by `$t:stmt`, which is not allowed for `stmt` fragments
0731742a 522 --> $DIR/macro-follow.rs:85:14
b7449926 523 |
9fa01778 524LL | ($s:stmt $t:stmt) => {}; //~ERROR `$s:stmt` is followed by `$t:stmt`
a1dfa0c6
XL
525 | ^^^^^^^ not allowed after `stmt` fragments
526 |
527 = note: allowed there are: `=>`, `,` or `;`
b7449926
XL
528
529error: `$s:stmt` is followed by `$p:path`, which is not allowed for `stmt` fragments
0731742a 530 --> $DIR/macro-follow.rs:86:14
b7449926
XL
531 |
532LL | ($s:stmt $p:path) => {}; //~ERROR `$s:stmt` is followed by `$p:path`
a1dfa0c6
XL
533 | ^^^^^^^ not allowed after `stmt` fragments
534 |
535 = note: allowed there are: `=>`, `,` or `;`
b7449926
XL
536
537error: `$s:stmt` is followed by `$b:block`, which is not allowed for `stmt` fragments
0731742a 538 --> $DIR/macro-follow.rs:87:14
b7449926
XL
539 |
540LL | ($s:stmt $b:block) => {}; //~ERROR `$s:stmt` is followed by `$b:block`
a1dfa0c6
XL
541 | ^^^^^^^^ not allowed after `stmt` fragments
542 |
543 = note: allowed there are: `=>`, `,` or `;`
b7449926
XL
544
545error: `$s:stmt` is followed by `$i:ident`, which is not allowed for `stmt` fragments
0731742a 546 --> $DIR/macro-follow.rs:88:14
b7449926
XL
547 |
548LL | ($s:stmt $i:ident) => {}; //~ERROR `$s:stmt` is followed by `$i:ident`
a1dfa0c6
XL
549 | ^^^^^^^^ not allowed after `stmt` fragments
550 |
551 = note: allowed there are: `=>`, `,` or `;`
b7449926
XL
552
553error: `$s:stmt` is followed by `$t:tt`, which is not allowed for `stmt` fragments
0731742a 554 --> $DIR/macro-follow.rs:89:14
b7449926
XL
555 |
556LL | ($s:stmt $t:tt) => {}; //~ERROR `$s:stmt` is followed by `$t:tt`
a1dfa0c6
XL
557 | ^^^^^ not allowed after `stmt` fragments
558 |
559 = note: allowed there are: `=>`, `,` or `;`
b7449926
XL
560
561error: `$s:stmt` is followed by `$i:item`, which is not allowed for `stmt` fragments
0731742a 562 --> $DIR/macro-follow.rs:90:14
b7449926
XL
563 |
564LL | ($s:stmt $i:item) => {}; //~ERROR `$s:stmt` is followed by `$i:item`
a1dfa0c6
XL
565 | ^^^^^^^ not allowed after `stmt` fragments
566 |
567 = note: allowed there are: `=>`, `,` or `;`
b7449926
XL
568
569error: `$s:stmt` is followed by `$m:meta`, which is not allowed for `stmt` fragments
0731742a 570 --> $DIR/macro-follow.rs:91:14
b7449926
XL
571 |
572LL | ($s:stmt $m:meta) => {}; //~ERROR `$s:stmt` is followed by `$m:meta`
a1dfa0c6
XL
573 | ^^^^^^^ not allowed after `stmt` fragments
574 |
575 = note: allowed there are: `=>`, `,` or `;`
b7449926
XL
576
577error: `$p:path` is followed by `(`, which is not allowed for `path` fragments
0731742a 578 --> $DIR/macro-follow.rs:95:15
b7449926
XL
579 |
580LL | ($p:path ()) => {}; //~ERROR `$p:path` is followed by `(`
a1dfa0c6
XL
581 | ^ not allowed after `path` fragments
582 |
583 = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
b7449926
XL
584
585error: `$p:path` is followed by `+`, which is not allowed for `path` fragments
0731742a 586 --> $DIR/macro-follow.rs:97:14
b7449926
XL
587 |
588LL | ($p:path +) => {}; //~ERROR `$p:path` is followed by `+`
a1dfa0c6
XL
589 | ^ not allowed after `path` fragments
590 |
591 = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
b7449926
XL
592
593error: `$p:path` is followed by `ident`, which is not allowed for `path` fragments
0731742a 594 --> $DIR/macro-follow.rs:98:14
b7449926
XL
595 |
596LL | ($p:path ident) => {}; //~ERROR `$p:path` is followed by `ident`
a1dfa0c6
XL
597 | ^^^^^ not allowed after `path` fragments
598 |
599 = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
b7449926
XL
600
601error: `$p:path` is followed by `if`, which is not allowed for `path` fragments
0731742a 602 --> $DIR/macro-follow.rs:99:14
b7449926
XL
603 |
604LL | ($p:path if) => {}; //~ERROR `$p:path` is followed by `if`
a1dfa0c6
XL
605 | ^^ not allowed after `path` fragments
606 |
607 = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
b7449926 608
9fa01778 609error: `$p:path` is followed by `$q:pat`, which is not allowed for `path` fragments
0731742a 610 --> $DIR/macro-follow.rs:100:14
b7449926 611 |
9fa01778 612LL | ($p:path $q:pat) => {}; //~ERROR `$p:path` is followed by `$q:pat`
a1dfa0c6
XL
613 | ^^^^^^ not allowed after `path` fragments
614 |
615 = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
b7449926
XL
616
617error: `$p:path` is followed by `$e:expr`, which is not allowed for `path` fragments
0731742a 618 --> $DIR/macro-follow.rs:101:14
b7449926
XL
619 |
620LL | ($p:path $e:expr) => {}; //~ERROR `$p:path` is followed by `$e:expr`
a1dfa0c6
XL
621 | ^^^^^^^ not allowed after `path` fragments
622 |
623 = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
b7449926
XL
624
625error: `$p:path` is followed by `$t:ty`, which is not allowed for `path` fragments
0731742a 626 --> $DIR/macro-follow.rs:102:14
b7449926
XL
627 |
628LL | ($p:path $t:ty) => {}; //~ERROR `$p:path` is followed by `$t:ty`
a1dfa0c6
XL
629 | ^^^^^ not allowed after `path` fragments
630 |
631 = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
b7449926
XL
632
633error: `$p:path` is followed by `$s:stmt`, which is not allowed for `path` fragments
0731742a 634 --> $DIR/macro-follow.rs:103:14
b7449926
XL
635 |
636LL | ($p:path $s:stmt) => {}; //~ERROR `$p:path` is followed by `$s:stmt`
a1dfa0c6
XL
637 | ^^^^^^^ not allowed after `path` fragments
638 |
639 = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
b7449926 640
9fa01778 641error: `$p:path` is followed by `$q:path`, which is not allowed for `path` fragments
0731742a 642 --> $DIR/macro-follow.rs:104:14
b7449926 643 |
9fa01778 644LL | ($p:path $q:path) => {}; //~ERROR `$p:path` is followed by `$q:path`
a1dfa0c6
XL
645 | ^^^^^^^ not allowed after `path` fragments
646 |
647 = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
b7449926
XL
648
649error: `$p:path` is followed by `$i:ident`, which is not allowed for `path` fragments
0731742a 650 --> $DIR/macro-follow.rs:106:14
b7449926
XL
651 |
652LL | ($p:path $i:ident) => {}; //~ERROR `$p:path` is followed by `$i:ident`
a1dfa0c6
XL
653 | ^^^^^^^^ not allowed after `path` fragments
654 |
655 = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
b7449926
XL
656
657error: `$p:path` is followed by `$t:tt`, which is not allowed for `path` fragments
0731742a 658 --> $DIR/macro-follow.rs:107:14
b7449926
XL
659 |
660LL | ($p:path $t:tt) => {}; //~ERROR `$p:path` is followed by `$t:tt`
a1dfa0c6
XL
661 | ^^^^^ not allowed after `path` fragments
662 |
663 = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
b7449926
XL
664
665error: `$p:path` is followed by `$i:item`, which is not allowed for `path` fragments
0731742a 666 --> $DIR/macro-follow.rs:108:14
b7449926
XL
667 |
668LL | ($p:path $i:item) => {}; //~ERROR `$p:path` is followed by `$i:item`
a1dfa0c6
XL
669 | ^^^^^^^ not allowed after `path` fragments
670 |
671 = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
b7449926
XL
672
673error: `$p:path` is followed by `$m:meta`, which is not allowed for `path` fragments
0731742a 674 --> $DIR/macro-follow.rs:109:14
b7449926
XL
675 |
676LL | ($p:path $m:meta) => {}; //~ERROR `$p:path` is followed by `$m:meta`
a1dfa0c6
XL
677 | ^^^^^^^ not allowed after `path` fragments
678 |
679 = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
b7449926
XL
680
681error: aborting due to 85 previous errors
682