@@ -130,7 +130,7 @@ error: metavariables of `${concat(..)}` must be of type `ident`, `literal` or `t
130
130
LL | ${concat($ex, aaaa)}
131
131
| ^^
132
132
|
133
- = note: currently only string literals are supported
133
+ = note: currently only string and integer literals are supported
134
134
135
135
error: variable `foo` is not recognized in meta-variable expression
136
136
--> $DIR/concat-usage-errors.rs:37:30
@@ -276,15 +276,15 @@ error: metavariables of `${concat(..)}` must be of type `ident`, `literal` or `t
276
276
LL | const ${concat(_foo, $literal)}: () = ();
277
277
| ^^^^^^^
278
278
|
279
- = note: currently only string literals are supported
279
+ = note: currently only string and integer literals are supported
280
280
281
281
error: metavariables of `${concat(..)}` must be of type `ident`, `literal` or `tt`
282
282
--> $DIR/concat-usage-errors.rs:138:31
283
283
|
284
284
LL | const ${concat(_foo, $literal)}: () = ();
285
285
| ^^^^^^^
286
286
|
287
- = note: currently only string literals are supported
287
+ = note: currently only string and integer literals are supported
288
288
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
289
289
290
290
error: metavariables of `${concat(..)}` must be of type `ident`, `literal` or `tt`
@@ -293,7 +293,7 @@ error: metavariables of `${concat(..)}` must be of type `ident`, `literal` or `t
293
293
LL | const ${concat(_foo, $literal)}: () = ();
294
294
| ^^^^^^^
295
295
|
296
- = note: currently only string literals are supported
296
+ = note: currently only string and integer literals are supported
297
297
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
298
298
299
299
error: metavariables of `${concat(..)}` must be of type `ident`, `literal` or `tt`
@@ -302,43 +302,45 @@ error: metavariables of `${concat(..)}` must be of type `ident`, `literal` or `t
302
302
LL | const ${concat(_foo, $literal)}: () = ();
303
303
| ^^^^^^^
304
304
|
305
- = note: currently only string literals are supported
305
+ = note: currently only string and integer literals are supported
306
306
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
307
307
308
- error: metavariables of `${concat(..)}` must be of type `ident`, `literal` or `tt `
308
+ error: floats are not supported as metavariables of `${concat(..)}`
309
309
--> $DIR/concat-usage-errors.rs:138:31
310
310
|
311
311
LL | const ${concat(_foo, $literal)}: () = ();
312
312
| ^^^^^^^
313
+
314
+ error: integer metavariables of `${concat(..)}` must not be suffixed
315
+ --> $DIR/concat-usage-errors.rs:138:31
313
316
|
314
- = note: currently only string literals are supported
315
- = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
317
+ LL | const ${concat(_foo, $literal)}: () = ();
318
+ | ^^^^^^^
316
319
317
- error: metavariables of `${concat(..)}` must be of type `ident`, `literal` or `tt`
318
- --> $DIR/concat-usage-errors.rs:149 :31
320
+ error: integer metavariables of `${concat(..)}` must not be suffixed
321
+ --> $DIR/concat-usage-errors.rs:138 :31
319
322
|
320
- LL | const ${concat(_foo, $tt )}: () = ();
321
- | ^^
323
+ LL | const ${concat(_foo, $literal )}: () = ();
324
+ | ^^^^^^^
322
325
|
323
- = note: currently only string literals are supported
326
+ = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
324
327
325
328
error: metavariables of `${concat(..)}` must be of type `ident`, `literal` or `tt`
326
- --> $DIR/concat-usage-errors.rs:149 :31
329
+ --> $DIR/concat-usage-errors.rs:151 :31
327
330
|
328
331
LL | const ${concat(_foo, $tt)}: () = ();
329
332
| ^^
330
333
|
331
- = note: currently only string literals are supported
332
- = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
334
+ = note: currently only string and integer literals are supported
333
335
334
336
error: metavariables of `${concat(..)}` must be of type `ident`, `literal` or `tt`
335
- --> $DIR/concat-usage-errors.rs:149 :31
337
+ --> $DIR/concat-usage-errors.rs:151 :31
336
338
|
337
339
LL | const ${concat(_foo, $tt)}: () = ();
338
340
| ^^
339
341
|
340
- = note: currently only string literals are supported
342
+ = note: currently only string and integer literals are supported
341
343
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
342
344
343
- error: aborting due to 43 previous errors
345
+ error: aborting due to 44 previous errors
344
346
0 commit comments