Fix a couple of tests

This commit is contained in:
Mark Mansi 2018-01-25 15:31:40 -06:00
parent 51ef7393ef
commit 4897a05ebf
2 changed files with 3 additions and 3 deletions

View 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
}

View 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 `?`
}
}