Skip to content

Commit 4897a05

Browse files
committed
Fix a couple of tests
1 parent 51ef739 commit 4897a05

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/test/compile-fail/macro-at-most-once-rep-ambig.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ pub fn main() {
2727
baz!(a?a?a); //~ ERROR no rules expected the token `?`
2828
baz!(a?a); //~ ERROR no rules expected the token `?`
2929
baz!(a?); //~ ERROR no rules expected the token `?`
30-
baz!(a,); //~ ERROR no rules expected the token `,`
30+
baz!(a,); //~ ERROR unexpected end of macro invocation
3131
baz!(a?a?a,); //~ ERROR no rules expected the token `?`
3232
baz!(a?a,); //~ ERROR no rules expected the token `?`
3333
baz!(a?,); //~ ERROR no rules expected the token `?`
3434
bar!(); //~ ERROR unexpected end of macro invocation
35-
bar!(a?); //~ ERROR no rules expected the token `?`
35+
bar!(a?); //~ ERROR unexpected end of macro invocation
3636
}

src/test/parse-fail/issue-33569.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
macro_rules! foo {
1414
{ $+ } => { //~ ERROR expected identifier, found `+`
1515
//~^ ERROR missing fragment specifier
16-
$(x)(y) //~ ERROR expected `*` or `+`
16+
$(x)(y) //~ ERROR expected one of: `*`, `+`, or `?`
1717
}
1818
}
1919

0 commit comments

Comments
 (0)