1 error: `$p:pat` is followed by `(`, which is not allowed for `pat` fragments
2 --> $DIR/macro-follow.rs:17:14
4 LL | ($p:pat ()) => {}; //~ERROR `$p:pat` is followed by `(`
5 | ^ not allowed after `pat` fragments
7 = note: allowed there are: `=>`, `,`, `=`, `|`, `if` or `in`
9 error: `$p:pat` is followed by `[`, which is not allowed for `pat` fragments
10 --> $DIR/macro-follow.rs:18:14
12 LL | ($p:pat []) => {}; //~ERROR `$p:pat` is followed by `[`
13 | ^ not allowed after `pat` fragments
15 = note: allowed there are: `=>`, `,`, `=`, `|`, `if` or `in`
17 error: `$p:pat` is followed by `{`, which is not allowed for `pat` fragments
18 --> $DIR/macro-follow.rs:19:14
20 LL | ($p:pat {}) => {}; //~ERROR `$p:pat` is followed by `{`
21 | ^ not allowed after `pat` fragments
23 = note: allowed there are: `=>`, `,`, `=`, `|`, `if` or `in`
25 error: `$p:pat` is followed by `:`, which is not allowed for `pat` fragments
26 --> $DIR/macro-follow.rs:20:13
28 LL | ($p:pat :) => {}; //~ERROR `$p:pat` is followed by `:`
29 | ^ not allowed after `pat` fragments
31 = note: allowed there are: `=>`, `,`, `=`, `|`, `if` or `in`
33 error: `$p:pat` is followed by `>`, which is not allowed for `pat` fragments
34 --> $DIR/macro-follow.rs:21:13
36 LL | ($p:pat >) => {}; //~ERROR `$p:pat` is followed by `>`
37 | ^ not allowed after `pat` fragments
39 = note: allowed there are: `=>`, `,`, `=`, `|`, `if` or `in`
41 error: `$p:pat` is followed by `+`, which is not allowed for `pat` fragments
42 --> $DIR/macro-follow.rs:22:13
44 LL | ($p:pat +) => {}; //~ERROR `$p:pat` is followed by `+`
45 | ^ not allowed after `pat` fragments
47 = note: allowed there are: `=>`, `,`, `=`, `|`, `if` or `in`
49 error: `$p:pat` is followed by `ident`, which is not allowed for `pat` fragments
50 --> $DIR/macro-follow.rs:23:13
52 LL | ($p:pat ident) => {}; //~ERROR `$p:pat` is followed by `ident`
53 | ^^^^^ not allowed after `pat` fragments
55 = note: allowed there are: `=>`, `,`, `=`, `|`, `if` or `in`
57 error: `$p:pat` is followed by `$p:pat`, which is not allowed for `pat` fragments
58 --> $DIR/macro-follow.rs:24:13
60 LL | ($p:pat $p:pat) => {}; //~ERROR `$p:pat` is followed by `$p:pat`
61 | ^^^^^^ not allowed after `pat` fragments
63 = note: allowed there are: `=>`, `,`, `=`, `|`, `if` or `in`
65 error: `$p:pat` is followed by `$e:expr`, which is not allowed for `pat` fragments
66 --> $DIR/macro-follow.rs:25:13
68 LL | ($p:pat $e:expr) => {}; //~ERROR `$p:pat` is followed by `$e:expr`
69 | ^^^^^^^ not allowed after `pat` fragments
71 = note: allowed there are: `=>`, `,`, `=`, `|`, `if` or `in`
73 error: `$p:pat` is followed by `$t:ty`, which is not allowed for `pat` fragments
74 --> $DIR/macro-follow.rs:26:13
76 LL | ($p:pat $t:ty) => {}; //~ERROR `$p:pat` is followed by `$t:ty`
77 | ^^^^^ not allowed after `pat` fragments
79 = note: allowed there are: `=>`, `,`, `=`, `|`, `if` or `in`
81 error: `$p:pat` is followed by `$s:stmt`, which is not allowed for `pat` fragments
82 --> $DIR/macro-follow.rs:27:13
84 LL | ($p:pat $s:stmt) => {}; //~ERROR `$p:pat` is followed by `$s:stmt`
85 | ^^^^^^^ not allowed after `pat` fragments
87 = note: allowed there are: `=>`, `,`, `=`, `|`, `if` or `in`
89 error: `$p:pat` is followed by `$p:path`, which is not allowed for `pat` fragments
90 --> $DIR/macro-follow.rs:28:13
92 LL | ($p:pat $p:path) => {}; //~ERROR `$p:pat` is followed by `$p:path`
93 | ^^^^^^^ not allowed after `pat` fragments
95 = note: allowed there are: `=>`, `,`, `=`, `|`, `if` or `in`
97 error: `$p:pat` is followed by `$b:block`, which is not allowed for `pat` fragments
98 --> $DIR/macro-follow.rs:29:13
100 LL | ($p:pat $b:block) => {}; //~ERROR `$p:pat` is followed by `$b:block`
101 | ^^^^^^^^ not allowed after `pat` fragments
103 = note: allowed there are: `=>`, `,`, `=`, `|`, `if` or `in`
105 error: `$p:pat` is followed by `$i:ident`, which is not allowed for `pat` fragments
106 --> $DIR/macro-follow.rs:30:13
108 LL | ($p:pat $i:ident) => {}; //~ERROR `$p:pat` is followed by `$i:ident`
109 | ^^^^^^^^ not allowed after `pat` fragments
111 = note: allowed there are: `=>`, `,`, `=`, `|`, `if` or `in`
113 error: `$p:pat` is followed by `$t:tt`, which is not allowed for `pat` fragments
114 --> $DIR/macro-follow.rs:31:13
116 LL | ($p:pat $t:tt) => {}; //~ERROR `$p:pat` is followed by `$t:tt`
117 | ^^^^^ not allowed after `pat` fragments
119 = note: allowed there are: `=>`, `,`, `=`, `|`, `if` or `in`
121 error: `$p:pat` is followed by `$i:item`, which is not allowed for `pat` fragments
122 --> $DIR/macro-follow.rs:32:13
124 LL | ($p:pat $i:item) => {}; //~ERROR `$p:pat` is followed by `$i:item`
125 | ^^^^^^^ not allowed after `pat` fragments
127 = note: allowed there are: `=>`, `,`, `=`, `|`, `if` or `in`
129 error: `$p:pat` is followed by `$m:meta`, which is not allowed for `pat` fragments
130 --> $DIR/macro-follow.rs:33:13
132 LL | ($p:pat $m:meta) => {}; //~ERROR `$p:pat` is followed by `$m:meta`
133 | ^^^^^^^ not allowed after `pat` fragments
135 = note: allowed there are: `=>`, `,`, `=`, `|`, `if` or `in`
137 error: `$e:expr` is followed by `(`, which is not allowed for `expr` fragments
138 --> $DIR/macro-follow.rs:37:15
140 LL | ($e:expr ()) => {}; //~ERROR `$e:expr` is followed by `(`
141 | ^ not allowed after `expr` fragments
143 = note: allowed there are: `=>`, `,` or `;`
145 error: `$e:expr` is followed by `[`, which is not allowed for `expr` fragments
146 --> $DIR/macro-follow.rs:38:15
148 LL | ($e:expr []) => {}; //~ERROR `$e:expr` is followed by `[`
149 | ^ not allowed after `expr` fragments
151 = note: allowed there are: `=>`, `,` or `;`
153 error: `$e:expr` is followed by `{`, which is not allowed for `expr` fragments
154 --> $DIR/macro-follow.rs:39:15
156 LL | ($e:expr {}) => {}; //~ERROR `$e:expr` is followed by `{`
157 | ^ not allowed after `expr` fragments
159 = note: allowed there are: `=>`, `,` or `;`
161 error: `$e:expr` is followed by `=`, which is not allowed for `expr` fragments
162 --> $DIR/macro-follow.rs:40:14
164 LL | ($e:expr =) => {}; //~ERROR `$e:expr` is followed by `=`
165 | ^ not allowed after `expr` fragments
167 = note: allowed there are: `=>`, `,` or `;`
169 error: `$e:expr` is followed by `|`, which is not allowed for `expr` fragments
170 --> $DIR/macro-follow.rs:41:14
172 LL | ($e:expr |) => {}; //~ERROR `$e:expr` is followed by `|`
173 | ^ not allowed after `expr` fragments
175 = note: allowed there are: `=>`, `,` or `;`
177 error: `$e:expr` is followed by `:`, which is not allowed for `expr` fragments
178 --> $DIR/macro-follow.rs:42:14
180 LL | ($e:expr :) => {}; //~ERROR `$e:expr` is followed by `:`
181 | ^ not allowed after `expr` fragments
183 = note: allowed there are: `=>`, `,` or `;`
185 error: `$e:expr` is followed by `>`, which is not allowed for `expr` fragments
186 --> $DIR/macro-follow.rs:43:14
188 LL | ($e:expr >) => {}; //~ERROR `$e:expr` is followed by `>`
189 | ^ not allowed after `expr` fragments
191 = note: allowed there are: `=>`, `,` or `;`
193 error: `$e:expr` is followed by `+`, which is not allowed for `expr` fragments
194 --> $DIR/macro-follow.rs:44:14
196 LL | ($e:expr +) => {}; //~ERROR `$e:expr` is followed by `+`
197 | ^ not allowed after `expr` fragments
199 = note: allowed there are: `=>`, `,` or `;`
201 error: `$e:expr` is followed by `ident`, which is not allowed for `expr` fragments
202 --> $DIR/macro-follow.rs:45:14
204 LL | ($e:expr ident) => {}; //~ERROR `$e:expr` is followed by `ident`
205 | ^^^^^ not allowed after `expr` fragments
207 = note: allowed there are: `=>`, `,` or `;`
209 error: `$e:expr` is followed by `if`, which is not allowed for `expr` fragments
210 --> $DIR/macro-follow.rs:46:14
212 LL | ($e:expr if) => {}; //~ERROR `$e:expr` is followed by `if`
213 | ^^ not allowed after `expr` fragments
215 = note: allowed there are: `=>`, `,` or `;`
217 error: `$e:expr` is followed by `in`, which is not allowed for `expr` fragments
218 --> $DIR/macro-follow.rs:47:14
220 LL | ($e:expr in) => {}; //~ERROR `$e:expr` is followed by `in`
221 | ^^ not allowed after `expr` fragments
223 = note: allowed there are: `=>`, `,` or `;`
225 error: `$e:expr` is followed by `$p:pat`, which is not allowed for `expr` fragments
226 --> $DIR/macro-follow.rs:48:14
228 LL | ($e:expr $p:pat) => {}; //~ERROR `$e:expr` is followed by `$p:pat`
229 | ^^^^^^ not allowed after `expr` fragments
231 = note: allowed there are: `=>`, `,` or `;`
233 error: `$e:expr` is followed by `$e:expr`, which is not allowed for `expr` fragments
234 --> $DIR/macro-follow.rs:49:14
236 LL | ($e:expr $e:expr) => {}; //~ERROR `$e:expr` is followed by `$e:expr`
237 | ^^^^^^^ not allowed after `expr` fragments
239 = note: allowed there are: `=>`, `,` or `;`
241 error: `$e:expr` is followed by `$t:ty`, which is not allowed for `expr` fragments
242 --> $DIR/macro-follow.rs:50:14
244 LL | ($e:expr $t:ty) => {}; //~ERROR `$e:expr` is followed by `$t:ty`
245 | ^^^^^ not allowed after `expr` fragments
247 = note: allowed there are: `=>`, `,` or `;`
249 error: `$e:expr` is followed by `$s:stmt`, which is not allowed for `expr` fragments
250 --> $DIR/macro-follow.rs:51:14
252 LL | ($e:expr $s:stmt) => {}; //~ERROR `$e:expr` is followed by `$s:stmt`
253 | ^^^^^^^ not allowed after `expr` fragments
255 = note: allowed there are: `=>`, `,` or `;`
257 error: `$e:expr` is followed by `$p:path`, which is not allowed for `expr` fragments
258 --> $DIR/macro-follow.rs:52:14
260 LL | ($e:expr $p:path) => {}; //~ERROR `$e:expr` is followed by `$p:path`
261 | ^^^^^^^ not allowed after `expr` fragments
263 = note: allowed there are: `=>`, `,` or `;`
265 error: `$e:expr` is followed by `$b:block`, which is not allowed for `expr` fragments
266 --> $DIR/macro-follow.rs:53:14
268 LL | ($e:expr $b:block) => {}; //~ERROR `$e:expr` is followed by `$b:block`
269 | ^^^^^^^^ not allowed after `expr` fragments
271 = note: allowed there are: `=>`, `,` or `;`
273 error: `$e:expr` is followed by `$i:ident`, which is not allowed for `expr` fragments
274 --> $DIR/macro-follow.rs:54:14
276 LL | ($e:expr $i:ident) => {}; //~ERROR `$e:expr` is followed by `$i:ident`
277 | ^^^^^^^^ not allowed after `expr` fragments
279 = note: allowed there are: `=>`, `,` or `;`
281 error: `$e:expr` is followed by `$t:tt`, which is not allowed for `expr` fragments
282 --> $DIR/macro-follow.rs:55:14
284 LL | ($e:expr $t:tt) => {}; //~ERROR `$e:expr` is followed by `$t:tt`
285 | ^^^^^ not allowed after `expr` fragments
287 = note: allowed there are: `=>`, `,` or `;`
289 error: `$e:expr` is followed by `$i:item`, which is not allowed for `expr` fragments
290 --> $DIR/macro-follow.rs:56:14
292 LL | ($e:expr $i:item) => {}; //~ERROR `$e:expr` is followed by `$i:item`
293 | ^^^^^^^ not allowed after `expr` fragments
295 = note: allowed there are: `=>`, `,` or `;`
297 error: `$e:expr` is followed by `$m:meta`, which is not allowed for `expr` fragments
298 --> $DIR/macro-follow.rs:57:14
300 LL | ($e:expr $m:meta) => {}; //~ERROR `$e:expr` is followed by `$m:meta`
301 | ^^^^^^^ not allowed after `expr` fragments
303 = note: allowed there are: `=>`, `,` or `;`
305 error: `$t:ty` is followed by `(`, which is not allowed for `ty` fragments
306 --> $DIR/macro-follow.rs:62:13
308 LL | ($t:ty ()) => {}; //~ERROR `$t:ty` is followed by `(`
309 | ^ not allowed after `ty` fragments
311 = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
313 error: `$t:ty` is followed by `+`, which is not allowed for `ty` fragments
314 --> $DIR/macro-follow.rs:64:12
316 LL | ($t:ty +) => {}; //~ERROR `$t:ty` is followed by `+`
317 | ^ not allowed after `ty` fragments
319 = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
321 error: `$t:ty` is followed by `ident`, which is not allowed for `ty` fragments
322 --> $DIR/macro-follow.rs:65:12
324 LL | ($t:ty ident) => {}; //~ERROR `$t:ty` is followed by `ident`
325 | ^^^^^ not allowed after `ty` fragments
327 = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
329 error: `$t:ty` is followed by `if`, which is not allowed for `ty` fragments
330 --> $DIR/macro-follow.rs:66:12
332 LL | ($t:ty if) => {}; //~ERROR `$t:ty` is followed by `if`
333 | ^^ not allowed after `ty` fragments
335 = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
337 error: `$t:ty` is followed by `$p:pat`, which is not allowed for `ty` fragments
338 --> $DIR/macro-follow.rs:67:12
340 LL | ($t:ty $p:pat) => {}; //~ERROR `$t:ty` is followed by `$p:pat`
341 | ^^^^^^ not allowed after `ty` fragments
343 = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
345 error: `$t:ty` is followed by `$e:expr`, which is not allowed for `ty` fragments
346 --> $DIR/macro-follow.rs:68:12
348 LL | ($t:ty $e:expr) => {}; //~ERROR `$t:ty` is followed by `$e:expr`
349 | ^^^^^^^ not allowed after `ty` fragments
351 = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
353 error: `$t:ty` is followed by `$t:ty`, which is not allowed for `ty` fragments
354 --> $DIR/macro-follow.rs:69:12
356 LL | ($t:ty $t:ty) => {}; //~ERROR `$t:ty` is followed by `$t:ty`
357 | ^^^^^ not allowed after `ty` fragments
359 = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
361 error: `$t:ty` is followed by `$s:stmt`, which is not allowed for `ty` fragments
362 --> $DIR/macro-follow.rs:70:12
364 LL | ($t:ty $s:stmt) => {}; //~ERROR `$t:ty` is followed by `$s:stmt`
365 | ^^^^^^^ not allowed after `ty` fragments
367 = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
369 error: `$t:ty` is followed by `$p:path`, which is not allowed for `ty` fragments
370 --> $DIR/macro-follow.rs:71:12
372 LL | ($t:ty $p:path) => {}; //~ERROR `$t:ty` is followed by `$p:path`
373 | ^^^^^^^ not allowed after `ty` fragments
375 = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
377 error: `$t:ty` is followed by `$i:ident`, which is not allowed for `ty` fragments
378 --> $DIR/macro-follow.rs:73:12
380 LL | ($t:ty $i:ident) => {}; //~ERROR `$t:ty` is followed by `$i:ident`
381 | ^^^^^^^^ not allowed after `ty` fragments
383 = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
385 error: `$t:ty` is followed by `$t:tt`, which is not allowed for `ty` fragments
386 --> $DIR/macro-follow.rs:74:12
388 LL | ($t:ty $t:tt) => {}; //~ERROR `$t:ty` is followed by `$t:tt`
389 | ^^^^^ not allowed after `ty` fragments
391 = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
393 error: `$t:ty` is followed by `$i:item`, which is not allowed for `ty` fragments
394 --> $DIR/macro-follow.rs:75:12
396 LL | ($t:ty $i:item) => {}; //~ERROR `$t:ty` is followed by `$i:item`
397 | ^^^^^^^ not allowed after `ty` fragments
399 = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
401 error: `$t:ty` is followed by `$m:meta`, which is not allowed for `ty` fragments
402 --> $DIR/macro-follow.rs:76:12
404 LL | ($t:ty $m:meta) => {}; //~ERROR `$t:ty` is followed by `$m:meta`
405 | ^^^^^^^ not allowed after `ty` fragments
407 = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
409 error: `$s:stmt` is followed by `(`, which is not allowed for `stmt` fragments
410 --> $DIR/macro-follow.rs:80:15
412 LL | ($s:stmt ()) => {}; //~ERROR `$s:stmt` is followed by `(`
413 | ^ not allowed after `stmt` fragments
415 = note: allowed there are: `=>`, `,` or `;`
417 error: `$s:stmt` is followed by `[`, which is not allowed for `stmt` fragments
418 --> $DIR/macro-follow.rs:81:15
420 LL | ($s:stmt []) => {}; //~ERROR `$s:stmt` is followed by `[`
421 | ^ not allowed after `stmt` fragments
423 = note: allowed there are: `=>`, `,` or `;`
425 error: `$s:stmt` is followed by `{`, which is not allowed for `stmt` fragments
426 --> $DIR/macro-follow.rs:82:15
428 LL | ($s:stmt {}) => {}; //~ERROR `$s:stmt` is followed by `{`
429 | ^ not allowed after `stmt` fragments
431 = note: allowed there are: `=>`, `,` or `;`
433 error: `$s:stmt` is followed by `=`, which is not allowed for `stmt` fragments
434 --> $DIR/macro-follow.rs:83:14
436 LL | ($s:stmt =) => {}; //~ERROR `$s:stmt` is followed by `=`
437 | ^ not allowed after `stmt` fragments
439 = note: allowed there are: `=>`, `,` or `;`
441 error: `$s:stmt` is followed by `|`, which is not allowed for `stmt` fragments
442 --> $DIR/macro-follow.rs:84:14
444 LL | ($s:stmt |) => {}; //~ERROR `$s:stmt` is followed by `|`
445 | ^ not allowed after `stmt` fragments
447 = note: allowed there are: `=>`, `,` or `;`
449 error: `$s:stmt` is followed by `:`, which is not allowed for `stmt` fragments
450 --> $DIR/macro-follow.rs:85:14
452 LL | ($s:stmt :) => {}; //~ERROR `$s:stmt` is followed by `:`
453 | ^ not allowed after `stmt` fragments
455 = note: allowed there are: `=>`, `,` or `;`
457 error: `$s:stmt` is followed by `>`, which is not allowed for `stmt` fragments
458 --> $DIR/macro-follow.rs:86:14
460 LL | ($s:stmt >) => {}; //~ERROR `$s:stmt` is followed by `>`
461 | ^ not allowed after `stmt` fragments
463 = note: allowed there are: `=>`, `,` or `;`
465 error: `$s:stmt` is followed by `+`, which is not allowed for `stmt` fragments
466 --> $DIR/macro-follow.rs:87:14
468 LL | ($s:stmt +) => {}; //~ERROR `$s:stmt` is followed by `+`
469 | ^ not allowed after `stmt` fragments
471 = note: allowed there are: `=>`, `,` or `;`
473 error: `$s:stmt` is followed by `ident`, which is not allowed for `stmt` fragments
474 --> $DIR/macro-follow.rs:88:14
476 LL | ($s:stmt ident) => {}; //~ERROR `$s:stmt` is followed by `ident`
477 | ^^^^^ not allowed after `stmt` fragments
479 = note: allowed there are: `=>`, `,` or `;`
481 error: `$s:stmt` is followed by `if`, which is not allowed for `stmt` fragments
482 --> $DIR/macro-follow.rs:89:14
484 LL | ($s:stmt if) => {}; //~ERROR `$s:stmt` is followed by `if`
485 | ^^ not allowed after `stmt` fragments
487 = note: allowed there are: `=>`, `,` or `;`
489 error: `$s:stmt` is followed by `in`, which is not allowed for `stmt` fragments
490 --> $DIR/macro-follow.rs:90:14
492 LL | ($s:stmt in) => {}; //~ERROR `$s:stmt` is followed by `in`
493 | ^^ not allowed after `stmt` fragments
495 = note: allowed there are: `=>`, `,` or `;`
497 error: `$s:stmt` is followed by `$p:pat`, which is not allowed for `stmt` fragments
498 --> $DIR/macro-follow.rs:91:14
500 LL | ($s:stmt $p:pat) => {}; //~ERROR `$s:stmt` is followed by `$p:pat`
501 | ^^^^^^ not allowed after `stmt` fragments
503 = note: allowed there are: `=>`, `,` or `;`
505 error: `$s:stmt` is followed by `$e:expr`, which is not allowed for `stmt` fragments
506 --> $DIR/macro-follow.rs:92:14
508 LL | ($s:stmt $e:expr) => {}; //~ERROR `$s:stmt` is followed by `$e:expr`
509 | ^^^^^^^ not allowed after `stmt` fragments
511 = note: allowed there are: `=>`, `,` or `;`
513 error: `$s:stmt` is followed by `$t:ty`, which is not allowed for `stmt` fragments
514 --> $DIR/macro-follow.rs:93:14
516 LL | ($s:stmt $t:ty) => {}; //~ERROR `$s:stmt` is followed by `$t:ty`
517 | ^^^^^ not allowed after `stmt` fragments
519 = note: allowed there are: `=>`, `,` or `;`
521 error: `$s:stmt` is followed by `$s:stmt`, which is not allowed for `stmt` fragments
522 --> $DIR/macro-follow.rs:94:14
524 LL | ($s:stmt $s:stmt) => {}; //~ERROR `$s:stmt` is followed by `$s:stmt`
525 | ^^^^^^^ not allowed after `stmt` fragments
527 = note: allowed there are: `=>`, `,` or `;`
529 error: `$s:stmt` is followed by `$p:path`, which is not allowed for `stmt` fragments
530 --> $DIR/macro-follow.rs:95:14
532 LL | ($s:stmt $p:path) => {}; //~ERROR `$s:stmt` is followed by `$p:path`
533 | ^^^^^^^ not allowed after `stmt` fragments
535 = note: allowed there are: `=>`, `,` or `;`
537 error: `$s:stmt` is followed by `$b:block`, which is not allowed for `stmt` fragments
538 --> $DIR/macro-follow.rs:96:14
540 LL | ($s:stmt $b:block) => {}; //~ERROR `$s:stmt` is followed by `$b:block`
541 | ^^^^^^^^ not allowed after `stmt` fragments
543 = note: allowed there are: `=>`, `,` or `;`
545 error: `$s:stmt` is followed by `$i:ident`, which is not allowed for `stmt` fragments
546 --> $DIR/macro-follow.rs:97:14
548 LL | ($s:stmt $i:ident) => {}; //~ERROR `$s:stmt` is followed by `$i:ident`
549 | ^^^^^^^^ not allowed after `stmt` fragments
551 = note: allowed there are: `=>`, `,` or `;`
553 error: `$s:stmt` is followed by `$t:tt`, which is not allowed for `stmt` fragments
554 --> $DIR/macro-follow.rs:98:14
556 LL | ($s:stmt $t:tt) => {}; //~ERROR `$s:stmt` is followed by `$t:tt`
557 | ^^^^^ not allowed after `stmt` fragments
559 = note: allowed there are: `=>`, `,` or `;`
561 error: `$s:stmt` is followed by `$i:item`, which is not allowed for `stmt` fragments
562 --> $DIR/macro-follow.rs:99:14
564 LL | ($s:stmt $i:item) => {}; //~ERROR `$s:stmt` is followed by `$i:item`
565 | ^^^^^^^ not allowed after `stmt` fragments
567 = note: allowed there are: `=>`, `,` or `;`
569 error: `$s:stmt` is followed by `$m:meta`, which is not allowed for `stmt` fragments
570 --> $DIR/macro-follow.rs:100:14
572 LL | ($s:stmt $m:meta) => {}; //~ERROR `$s:stmt` is followed by `$m:meta`
573 | ^^^^^^^ not allowed after `stmt` fragments
575 = note: allowed there are: `=>`, `,` or `;`
577 error: `$p:path` is followed by `(`, which is not allowed for `path` fragments
578 --> $DIR/macro-follow.rs:104:15
580 LL | ($p:path ()) => {}; //~ERROR `$p:path` is followed by `(`
581 | ^ not allowed after `path` fragments
583 = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
585 error: `$p:path` is followed by `+`, which is not allowed for `path` fragments
586 --> $DIR/macro-follow.rs:106:14
588 LL | ($p:path +) => {}; //~ERROR `$p:path` is followed by `+`
589 | ^ not allowed after `path` fragments
591 = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
593 error: `$p:path` is followed by `ident`, which is not allowed for `path` fragments
594 --> $DIR/macro-follow.rs:107:14
596 LL | ($p:path ident) => {}; //~ERROR `$p:path` is followed by `ident`
597 | ^^^^^ not allowed after `path` fragments
599 = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
601 error: `$p:path` is followed by `if`, which is not allowed for `path` fragments
602 --> $DIR/macro-follow.rs:108:14
604 LL | ($p:path if) => {}; //~ERROR `$p:path` is followed by `if`
605 | ^^ not allowed after `path` fragments
607 = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
609 error: `$p:path` is followed by `$p:pat`, which is not allowed for `path` fragments
610 --> $DIR/macro-follow.rs:109:14
612 LL | ($p:path $p:pat) => {}; //~ERROR `$p:path` is followed by `$p:pat`
613 | ^^^^^^ not allowed after `path` fragments
615 = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
617 error: `$p:path` is followed by `$e:expr`, which is not allowed for `path` fragments
618 --> $DIR/macro-follow.rs:110:14
620 LL | ($p:path $e:expr) => {}; //~ERROR `$p:path` is followed by `$e:expr`
621 | ^^^^^^^ not allowed after `path` fragments
623 = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
625 error: `$p:path` is followed by `$t:ty`, which is not allowed for `path` fragments
626 --> $DIR/macro-follow.rs:111:14
628 LL | ($p:path $t:ty) => {}; //~ERROR `$p:path` is followed by `$t:ty`
629 | ^^^^^ not allowed after `path` fragments
631 = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
633 error: `$p:path` is followed by `$s:stmt`, which is not allowed for `path` fragments
634 --> $DIR/macro-follow.rs:112:14
636 LL | ($p:path $s:stmt) => {}; //~ERROR `$p:path` is followed by `$s:stmt`
637 | ^^^^^^^ not allowed after `path` fragments
639 = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
641 error: `$p:path` is followed by `$p:path`, which is not allowed for `path` fragments
642 --> $DIR/macro-follow.rs:113:14
644 LL | ($p:path $p:path) => {}; //~ERROR `$p:path` is followed by `$p:path`
645 | ^^^^^^^ not allowed after `path` fragments
647 = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
649 error: `$p:path` is followed by `$i:ident`, which is not allowed for `path` fragments
650 --> $DIR/macro-follow.rs:115:14
652 LL | ($p:path $i:ident) => {}; //~ERROR `$p:path` is followed by `$i:ident`
653 | ^^^^^^^^ not allowed after `path` fragments
655 = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
657 error: `$p:path` is followed by `$t:tt`, which is not allowed for `path` fragments
658 --> $DIR/macro-follow.rs:116:14
660 LL | ($p:path $t:tt) => {}; //~ERROR `$p:path` is followed by `$t:tt`
661 | ^^^^^ not allowed after `path` fragments
663 = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
665 error: `$p:path` is followed by `$i:item`, which is not allowed for `path` fragments
666 --> $DIR/macro-follow.rs:117:14
668 LL | ($p:path $i:item) => {}; //~ERROR `$p:path` is followed by `$i:item`
669 | ^^^^^^^ not allowed after `path` fragments
671 = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
673 error: `$p:path` is followed by `$m:meta`, which is not allowed for `path` fragments
674 --> $DIR/macro-follow.rs:118:14
676 LL | ($p:path $m:meta) => {}; //~ERROR `$p:path` is followed by `$m:meta`
677 | ^^^^^^^ not allowed after `path` fragments
679 = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
681 error: aborting due to 85 previous errors