]> git.lizzy.rs Git - rust.git/commitdiff
Fix a couple of tests
authorMark Mansi <markm@cs.wisc.edu>
Thu, 25 Jan 2018 21:31:40 +0000 (15:31 -0600)
committerMark Mansi <markm@cs.wisc.edu>
Tue, 30 Jan 2018 18:41:04 +0000 (12:41 -0600)
src/test/compile-fail/macro-at-most-once-rep-ambig.rs
src/test/parse-fail/issue-33569.rs

index 89ca30840a9859ba9ce1fb20da244ce3192068dc..c745568f1caa268b5188b8423c2e850c10d56eb1 100644 (file)
@@ -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
 }
index 15d491719a6d58dd8edf2350edd32d3309d98fee..af90d0a83c926c86e8f9519cc8c87a32a8ace65e 100644 (file)
@@ -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 `?`
     }
 }