]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error: `$p:pat` is followed by `(`, which is not allowed for `pat` fragments |
0731742a | 2 | --> $DIR/macro-follow.rs:8:14 |
b7449926 XL |
3 | | |
4 | LL | ($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 | |
9 | error: `$p:pat` is followed by `[`, which is not allowed for `pat` fragments | |
0731742a | 10 | --> $DIR/macro-follow.rs:9:14 |
b7449926 XL |
11 | | |
12 | LL | ($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 | |
17 | error: `$p:pat` is followed by `{`, which is not allowed for `pat` fragments | |
0731742a | 18 | --> $DIR/macro-follow.rs:10:14 |
b7449926 XL |
19 | | |
20 | LL | ($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 | |
25 | error: `$p:pat` is followed by `:`, which is not allowed for `pat` fragments | |
0731742a | 26 | --> $DIR/macro-follow.rs:11:13 |
b7449926 XL |
27 | | |
28 | LL | ($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 | |
33 | error: `$p:pat` is followed by `>`, which is not allowed for `pat` fragments | |
0731742a | 34 | --> $DIR/macro-follow.rs:12:13 |
b7449926 XL |
35 | | |
36 | LL | ($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 | |
41 | error: `$p:pat` is followed by `+`, which is not allowed for `pat` fragments | |
0731742a | 42 | --> $DIR/macro-follow.rs:13:13 |
b7449926 XL |
43 | | |
44 | LL | ($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 | |
49 | error: `$p:pat` is followed by `ident`, which is not allowed for `pat` fragments | |
0731742a | 50 | --> $DIR/macro-follow.rs:14:13 |
b7449926 XL |
51 | | |
52 | LL | ($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 | 57 | error: `$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 | 60 | LL | ($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 | |
65 | error: `$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 | | |
68 | LL | ($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 | |
73 | error: `$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 | | |
76 | LL | ($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 | |
81 | error: `$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 | | |
84 | LL | ($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 | 89 | error: `$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 | 92 | LL | ($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 | |
97 | error: `$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 | | |
100 | LL | ($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 | |
105 | error: `$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 | | |
108 | LL | ($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 | |
113 | error: `$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 | | |
116 | LL | ($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 | |
121 | error: `$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 | | |
124 | LL | ($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 | |
129 | error: `$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 | | |
132 | LL | ($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 | |
137 | error: `$e:expr` is followed by `(`, which is not allowed for `expr` fragments | |
0731742a | 138 | --> $DIR/macro-follow.rs:28:15 |
b7449926 XL |
139 | | |
140 | LL | ($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 | |
145 | error: `$e:expr` is followed by `[`, which is not allowed for `expr` fragments | |
0731742a | 146 | --> $DIR/macro-follow.rs:29:15 |
b7449926 XL |
147 | | |
148 | LL | ($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 | |
153 | error: `$e:expr` is followed by `{`, which is not allowed for `expr` fragments | |
0731742a | 154 | --> $DIR/macro-follow.rs:30:15 |
b7449926 XL |
155 | | |
156 | LL | ($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 | |
161 | error: `$e:expr` is followed by `=`, which is not allowed for `expr` fragments | |
0731742a | 162 | --> $DIR/macro-follow.rs:31:14 |
b7449926 XL |
163 | | |
164 | LL | ($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 | |
169 | error: `$e:expr` is followed by `|`, which is not allowed for `expr` fragments | |
0731742a | 170 | --> $DIR/macro-follow.rs:32:14 |
b7449926 XL |
171 | | |
172 | LL | ($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 | |
177 | error: `$e:expr` is followed by `:`, which is not allowed for `expr` fragments | |
0731742a | 178 | --> $DIR/macro-follow.rs:33:14 |
b7449926 XL |
179 | | |
180 | LL | ($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 | |
185 | error: `$e:expr` is followed by `>`, which is not allowed for `expr` fragments | |
0731742a | 186 | --> $DIR/macro-follow.rs:34:14 |
b7449926 XL |
187 | | |
188 | LL | ($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 | |
193 | error: `$e:expr` is followed by `+`, which is not allowed for `expr` fragments | |
0731742a | 194 | --> $DIR/macro-follow.rs:35:14 |
b7449926 XL |
195 | | |
196 | LL | ($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 | |
201 | error: `$e:expr` is followed by `ident`, which is not allowed for `expr` fragments | |
0731742a | 202 | --> $DIR/macro-follow.rs:36:14 |
b7449926 XL |
203 | | |
204 | LL | ($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 | |
209 | error: `$e:expr` is followed by `if`, which is not allowed for `expr` fragments | |
0731742a | 210 | --> $DIR/macro-follow.rs:37:14 |
b7449926 XL |
211 | | |
212 | LL | ($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 | |
217 | error: `$e:expr` is followed by `in`, which is not allowed for `expr` fragments | |
0731742a | 218 | --> $DIR/macro-follow.rs:38:14 |
b7449926 XL |
219 | | |
220 | LL | ($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 | |
225 | error: `$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 | | |
228 | LL | ($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 | 233 | error: `$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 | 236 | LL | ($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 | |
241 | error: `$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 | | |
244 | LL | ($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 | |
249 | error: `$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 | | |
252 | LL | ($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 | |
257 | error: `$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 | | |
260 | LL | ($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 | |
265 | error: `$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 | | |
268 | LL | ($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 | |
273 | error: `$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 | | |
276 | LL | ($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 | |
281 | error: `$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 | | |
284 | LL | ($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 | |
289 | error: `$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 | | |
292 | LL | ($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 | |
297 | error: `$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 | | |
300 | LL | ($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 | |
305 | error: `$t:ty` is followed by `(`, which is not allowed for `ty` fragments | |
0731742a | 306 | --> $DIR/macro-follow.rs:53:13 |
b7449926 XL |
307 | | |
308 | LL | ($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 | |
313 | error: `$t:ty` is followed by `+`, which is not allowed for `ty` fragments | |
0731742a | 314 | --> $DIR/macro-follow.rs:55:12 |
b7449926 XL |
315 | | |
316 | LL | ($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 | |
321 | error: `$t:ty` is followed by `ident`, which is not allowed for `ty` fragments | |
0731742a | 322 | --> $DIR/macro-follow.rs:56:12 |
b7449926 XL |
323 | | |
324 | LL | ($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 | |
329 | error: `$t:ty` is followed by `if`, which is not allowed for `ty` fragments | |
0731742a | 330 | --> $DIR/macro-follow.rs:57:12 |
b7449926 XL |
331 | | |
332 | LL | ($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 | |
337 | error: `$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 | | |
340 | LL | ($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 | |
345 | error: `$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 | | |
348 | LL | ($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 | 353 | error: `$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 | 356 | LL | ($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 | |
361 | error: `$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 | | |
364 | LL | ($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 | |
369 | error: `$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 | | |
372 | LL | ($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 | |
377 | error: `$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 | | |
380 | LL | ($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 | 385 | error: `$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 | 388 | LL | ($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 | |
393 | error: `$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 | | |
396 | LL | ($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 | |
401 | error: `$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 | | |
404 | LL | ($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 | |
409 | error: `$s:stmt` is followed by `(`, which is not allowed for `stmt` fragments | |
0731742a | 410 | --> $DIR/macro-follow.rs:71:15 |
b7449926 XL |
411 | | |
412 | LL | ($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 | |
417 | error: `$s:stmt` is followed by `[`, which is not allowed for `stmt` fragments | |
0731742a | 418 | --> $DIR/macro-follow.rs:72:15 |
b7449926 XL |
419 | | |
420 | LL | ($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 | |
425 | error: `$s:stmt` is followed by `{`, which is not allowed for `stmt` fragments | |
0731742a | 426 | --> $DIR/macro-follow.rs:73:15 |
b7449926 XL |
427 | | |
428 | LL | ($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 | |
433 | error: `$s:stmt` is followed by `=`, which is not allowed for `stmt` fragments | |
0731742a | 434 | --> $DIR/macro-follow.rs:74:14 |
b7449926 XL |
435 | | |
436 | LL | ($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 | |
441 | error: `$s:stmt` is followed by `|`, which is not allowed for `stmt` fragments | |
0731742a | 442 | --> $DIR/macro-follow.rs:75:14 |
b7449926 XL |
443 | | |
444 | LL | ($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 | |
449 | error: `$s:stmt` is followed by `:`, which is not allowed for `stmt` fragments | |
0731742a | 450 | --> $DIR/macro-follow.rs:76:14 |
b7449926 XL |
451 | | |
452 | LL | ($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 | |
457 | error: `$s:stmt` is followed by `>`, which is not allowed for `stmt` fragments | |
0731742a | 458 | --> $DIR/macro-follow.rs:77:14 |
b7449926 XL |
459 | | |
460 | LL | ($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 | |
465 | error: `$s:stmt` is followed by `+`, which is not allowed for `stmt` fragments | |
0731742a | 466 | --> $DIR/macro-follow.rs:78:14 |
b7449926 XL |
467 | | |
468 | LL | ($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 | |
473 | error: `$s:stmt` is followed by `ident`, which is not allowed for `stmt` fragments | |
0731742a | 474 | --> $DIR/macro-follow.rs:79:14 |
b7449926 XL |
475 | | |
476 | LL | ($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 | |
481 | error: `$s:stmt` is followed by `if`, which is not allowed for `stmt` fragments | |
0731742a | 482 | --> $DIR/macro-follow.rs:80:14 |
b7449926 XL |
483 | | |
484 | LL | ($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 | |
489 | error: `$s:stmt` is followed by `in`, which is not allowed for `stmt` fragments | |
0731742a | 490 | --> $DIR/macro-follow.rs:81:14 |
b7449926 XL |
491 | | |
492 | LL | ($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 | |
497 | error: `$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 | | |
500 | LL | ($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 | |
505 | error: `$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 | | |
508 | LL | ($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 | |
513 | error: `$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 | | |
516 | LL | ($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 | 521 | error: `$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 | 524 | LL | ($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 | |
529 | error: `$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 | | |
532 | LL | ($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 | |
537 | error: `$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 | | |
540 | LL | ($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 | |
545 | error: `$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 | | |
548 | LL | ($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 | |
553 | error: `$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 | | |
556 | LL | ($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 | |
561 | error: `$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 | | |
564 | LL | ($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 | |
569 | error: `$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 | | |
572 | LL | ($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 | |
577 | error: `$p:path` is followed by `(`, which is not allowed for `path` fragments | |
0731742a | 578 | --> $DIR/macro-follow.rs:95:15 |
b7449926 XL |
579 | | |
580 | LL | ($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 | |
585 | error: `$p:path` is followed by `+`, which is not allowed for `path` fragments | |
0731742a | 586 | --> $DIR/macro-follow.rs:97:14 |
b7449926 XL |
587 | | |
588 | LL | ($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 | |
593 | error: `$p:path` is followed by `ident`, which is not allowed for `path` fragments | |
0731742a | 594 | --> $DIR/macro-follow.rs:98:14 |
b7449926 XL |
595 | | |
596 | LL | ($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 | |
601 | error: `$p:path` is followed by `if`, which is not allowed for `path` fragments | |
0731742a | 602 | --> $DIR/macro-follow.rs:99:14 |
b7449926 XL |
603 | | |
604 | LL | ($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 | 609 | error: `$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 | 612 | LL | ($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 | |
617 | error: `$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 | | |
620 | LL | ($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 | |
625 | error: `$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 | | |
628 | LL | ($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 | |
633 | error: `$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 | | |
636 | LL | ($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 | 641 | error: `$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 | 644 | LL | ($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 | |
649 | error: `$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 | | |
652 | LL | ($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 | |
657 | error: `$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 | | |
660 | LL | ($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 | |
665 | error: `$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 | | |
668 | LL | ($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 | |
673 | error: `$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 | | |
676 | LL | ($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 | |
681 | error: aborting due to 85 previous errors | |
682 |