1
Fork 0
This commit is contained in:
Mark Mansi 2018-11-24 18:40:03 -06:00
parent 59ae93daed
commit aeede9eb46
2 changed files with 2 additions and 2 deletions

View file

@ -39,7 +39,7 @@ pub fn main() {
barplus!(a); //~ERROR unexpected end of macro invocation
barplus!(a?); //~ ERROR no rules expected the token `?`
barplus!(a?a); //~ ERROR no rules expected the token `?`
barplus!(a);
barplus!(a+);
barplus!(+);
barstar!(); //~ERROR unexpected end of macro invocation

View file

@ -1,7 +1,7 @@
error: the `?` macro repetition operator does not take a separator
--> $DIR/macro-at-most-once-rep-2018.rs:20:10
|
LL | ($(a),?) => {} //~ERROR the `?` macro repetition operator
LL | ($(a),?) => {}; //~ERROR the `?` macro repetition operator
| ^
error: no rules expected the token `?`