@@ -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,51 +293,44 @@ 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
299- error: metavariables of `${concat(..)}` must be of type `ident`, `literal` or `tt `
299+ error: floats are not supported as  metavariables of `${concat(..)}`
300300  --> $DIR/concat-usage-errors.rs:138:31
301301   |
302302LL |         const ${concat(_foo, $literal)}: () = ();
303303   |                               ^^^^^^^
304-    |
305-    = note: currently only string literals are supported
306-    = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
307304
308- error: metavariables of `${concat(..)}` must be of type `ident`, `literal` or `tt` 
305+ error: integer  metavariables of `${concat(..)}` must not  be suffixed 
309306  --> $DIR/concat-usage-errors.rs:138:31
310307   |
311308LL |         const ${concat(_foo, $literal)}: () = ();
312309   |                               ^^^^^^^
313-    |
314-    = note: currently only string literals are supported
315-    = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
316310
317- error: metavariables of `${concat(..)}` must be of type `ident`, `literal` or `tt` 
318-   --> $DIR/concat-usage-errors.rs:149 :31
311+ error: integer  metavariables of `${concat(..)}` must not  be suffixed 
312+   --> $DIR/concat-usage-errors.rs:138 :31
319313   |
320- LL |         const ${concat(_foo, $tt )}: () = ();
321-    |                               ^^
314+ LL |         const ${concat(_foo, $literal )}: () = ();
315+    |                               ^^^^^^^ 
322316   |
323-    = note: currently only string literals are supported 
317+    = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` 
324318
325319error: metavariables of `${concat(..)}` must be of type `ident`, `literal` or `tt`
326-   --> $DIR/concat-usage-errors.rs:149 :31
320+   --> $DIR/concat-usage-errors.rs:150 :31
327321   |
328322LL |         const ${concat(_foo, $tt)}: () = ();
329323   |                               ^^
330324   |
331-    = note: currently only string literals are supported
332-    = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
325+    = note: currently only string and integer literals are supported
333326
334327error: metavariables of `${concat(..)}` must be of type `ident`, `literal` or `tt`
335-   --> $DIR/concat-usage-errors.rs:149 :31
328+   --> $DIR/concat-usage-errors.rs:150 :31
336329   |
337330LL |         const ${concat(_foo, $tt)}: () = ();
338331   |                               ^^
339332   |
340-    = note: currently only string literals are supported
333+    = note: currently only string and integer  literals are supported
341334   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
342335
343336error: aborting due to 43 previous errors
0 commit comments