about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/test/compile-fail/macro-at-most-once-rep-ambig.rs4
-rw-r--r--src/test/parse-fail/issue-33569.rs2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/test/compile-fail/macro-at-most-once-rep-ambig.rs b/src/test/compile-fail/macro-at-most-once-rep-ambig.rs
index 89ca30840a9..c745568f1ca 100644
--- a/src/test/compile-fail/macro-at-most-once-rep-ambig.rs
+++ b/src/test/compile-fail/macro-at-most-once-rep-ambig.rs
@@ -27,10 +27,10 @@ pub fn main() {
     baz!(a?a?a); //~ ERROR no rules expected the token `?`
     baz!(a?a); //~ ERROR no rules expected the token `?`
     baz!(a?); //~ ERROR no rules expected the token `?`
-    baz!(a,); //~ ERROR no rules expected the token `,`
+    baz!(a,); //~ ERROR unexpected end of macro invocation
     baz!(a?a?a,); //~ ERROR no rules expected the token `?`
     baz!(a?a,); //~ ERROR no rules expected the token `?`
     baz!(a?,); //~ ERROR no rules expected the token `?`
     bar!(); //~ ERROR unexpected end of macro invocation
-    bar!(a?); //~ ERROR no rules expected the token `?`
+    bar!(a?); //~ ERROR unexpected end of macro invocation
 }
diff --git a/src/test/parse-fail/issue-33569.rs b/src/test/parse-fail/issue-33569.rs
index 15d491719a6..af90d0a83c9 100644
--- a/src/test/parse-fail/issue-33569.rs
+++ b/src/test/parse-fail/issue-33569.rs
@@ -13,7 +13,7 @@
 macro_rules! foo {
     { $+ } => { //~ ERROR expected identifier, found `+`
                 //~^ ERROR missing fragment specifier
-        $(x)(y) //~ ERROR expected `*` or `+`
+        $(x)(y) //~ ERROR expected one of: `*`, `+`, or `?`
     }
 }