about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorMark Mansi <markm@cs.wisc.edu>2018-01-25 15:31:40 -0600
committerMark Mansi <markm@cs.wisc.edu>2018-01-30 12:41:04 -0600
commit4897a05ebf862f694f8b276e6c540ba30af4326a (patch)
tree88bc82422f89bc8ef268adcff6bc97d32fc0d5ed /src/test
parent51ef7393ef3e55e22cd385bd89dfa2c1b95a659b (diff)
Fix a couple of tests
Diffstat (limited to 'src/test')
-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 `?`
     }
 }