@@ -130,7 +130,7 @@ error: metavariables of `${concat(..)}` must be of type `ident`, `literal` or `t
130130LL | ${concat($ex, aaaa)}
131131 | ^^
132132 |
133- = note: currently only string literals are supported
133+ = note: currently only string and integer literals are supported
134134
135135error: variable `foo` is not recognized in meta-variable expression
136136 --> $DIR/concat-usage-errors.rs:37:30
@@ -276,15 +276,15 @@ error: metavariables of `${concat(..)}` must be of type `ident`, `literal` or `t
276276LL | const ${concat(_foo, $literal)}: () = ();
277277 | ^^^^^^^
278278 |
279- = note: currently only string literals are supported
279+ = note: currently only string and integer literals are supported
280280
281281error: metavariables of `${concat(..)}` must be of type `ident`, `literal` or `tt`
282282 --> $DIR/concat-usage-errors.rs:138:31
283283 |
284284LL | const ${concat(_foo, $literal)}: () = ();
285285 | ^^^^^^^
286286 |
287- = note: currently only string literals are supported
287+ = note: currently only string and integer literals are supported
288288 = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
289289
290290error: 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
293293LL | const ${concat(_foo, $literal)}: () = ();
294294 | ^^^^^^^
295295 |
296- = note: currently only string literals are supported
296+ = note: currently only string and integer literals are supported
297297 = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
298298
299299error: 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
302302LL | const ${concat(_foo, $literal)}: () = ();
303303 | ^^^^^^^
304304 |
305- = note: currently only string literals are supported
305+ = note: currently only string and integer literals are supported
306306 = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
307307
308- error: metavariables of `${concat(..)}` must be of type `ident`, `literal` or `tt `
308+ error: floats are not supported as metavariables of `${concat(..)}`
309309 --> $DIR/concat-usage-errors.rs:138:31
310310 |
311311LL | const ${concat(_foo, $literal)}: () = ();
312312 | ^^^^^^^
313+
314+ error: integer metavariables of `${concat(..)}` must not be suffixed
315+ --> $DIR/concat-usage-errors.rs:138:31
313316 |
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+ | ^^^^^^^
316319
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
319322 |
320- LL | const ${concat(_foo, $tt )}: () = ();
321- | ^^
323+ LL | const ${concat(_foo, $literal )}: () = ();
324+ | ^^^^^^^
322325 |
323- = note: currently only string literals are supported
326+ = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
324327
325328error: 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
327330 |
328331LL | const ${concat(_foo, $tt)}: () = ();
329332 | ^^
330333 |
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
333335
334336error: 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
336338 |
337339LL | const ${concat(_foo, $tt)}: () = ();
338340 | ^^
339341 |
340- = note: currently only string literals are supported
342+ = note: currently only string and integer literals are supported
341343 = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
342344
343- error: aborting due to 43 previous errors
345+ error: aborting due to 44 previous errors
344346
0 commit comments