about summary refs log tree commit diff
path: root/tests/ui/macros/metavar-expressions/concat-usage-errors.rs
diff options
context:
space:
mode:
authorThe Miri Cronjob Bot <miri@cron.bot>2025-09-13 04:59:55 +0000
committerThe Miri Cronjob Bot <miri@cron.bot>2025-09-13 04:59:55 +0000
commit520e45a538a6c047c77785f09fdead3842b7b7ba (patch)
tree2f810c44d18e82c7d160925dc49c157acbae9116 /tests/ui/macros/metavar-expressions/concat-usage-errors.rs
parentae57f08c1377b304b13fbb922438615d7692d65e (diff)
parent544644476d9c304648801dae76d85b1c17fc35d1 (diff)
downloadrust-520e45a538a6c047c77785f09fdead3842b7b7ba.tar.gz
rust-520e45a538a6c047c77785f09fdead3842b7b7ba.zip
Merge ref '4ba1cf9ade4c' from rust-lang/rust
Pull recent changes from https://github.com/rust-lang/rust via Josh.

Upstream ref: 4ba1cf9ade4c8e2fa10676a50ee34594eb161837
Filtered ref: 84b64d836ed478c54972a1d2639e60fa5f3ce26f
Upstream diff: https://github.com/rust-lang/rust/compare/2a9bacf6187685931d52346a0ecff2e52bdc91cc...4ba1cf9ade4c8e2fa10676a50ee34594eb161837

This merge was created using https://github.com/rust-lang/josh-sync.
Diffstat (limited to 'tests/ui/macros/metavar-expressions/concat-usage-errors.rs')
-rw-r--r--tests/ui/macros/metavar-expressions/concat-usage-errors.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/ui/macros/metavar-expressions/concat-usage-errors.rs b/tests/ui/macros/metavar-expressions/concat-usage-errors.rs
index 7d8756de9e2..277ad240b1b 100644
--- a/tests/ui/macros/metavar-expressions/concat-usage-errors.rs
+++ b/tests/ui/macros/metavar-expressions/concat-usage-errors.rs
@@ -140,7 +140,9 @@ macro_rules! bad_literal_non_string {
         //~| ERROR metavariables of `${concat(..)}` must be of type
         //~| ERROR metavariables of `${concat(..)}` must be of type
         //~| ERROR metavariables of `${concat(..)}` must be of type
-        //~| ERROR metavariables of `${concat(..)}` must be of type
+        //~| ERROR floats are not supported as metavariables of `${concat(..)}`
+        //~| ERROR integer metavariables of `${concat(..)}` must not be suffixed
+        //~| ERROR integer metavariables of `${concat(..)}` must not be suffixed
     }
 }
 
@@ -149,7 +151,6 @@ macro_rules! bad_tt_literal {
         const ${concat(_foo, $tt)}: () = ();
         //~^ ERROR metavariables of `${concat(..)}` must be of type
         //~| ERROR metavariables of `${concat(..)}` must be of type
-        //~| ERROR metavariables of `${concat(..)}` must be of type
     }
 }
 
@@ -178,13 +179,14 @@ fn main() {
     bad_literal_string!("1.0");
     bad_literal_string!("'1'");
 
-    bad_literal_non_string!(1);
     bad_literal_non_string!(-1);
     bad_literal_non_string!(1.0);
     bad_literal_non_string!('1');
     bad_literal_non_string!(false);
+    bad_literal_non_string!(4f64);
+    bad_literal_non_string!(5u8);
+    bad_literal_non_string!(6_u8);
 
-    bad_tt_literal!(1);
     bad_tt_literal!(1.0);
     bad_tt_literal!('1');
 }