fix test
This commit is contained in:
parent
b2ed17b5ea
commit
54bba4c456
2 changed files with 11 additions and 11 deletions
|
|
@ -44,6 +44,6 @@ pub fn main() {
|
|||
barstar!(a); //~ ERROR unexpected end of macro invocation
|
||||
barplus!(+); // ok
|
||||
barstar!(*); // ok
|
||||
barplus!(a); // ok
|
||||
barplus!(a+); // ok
|
||||
barstar!(a*); // ok
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,59 +1,59 @@
|
|||
error: `?` macro repetition does not allow a separator
|
||||
--> $DIR/macro-at-most-once-rep-ambig.rs:29:10
|
||||
--> $DIR/macro-at-most-once-rep-ambig.rs:22:10
|
||||
|
|
||||
LL | ($(a),?) => {} //~ ERROR `?` macro repetition does not allow a separator
|
||||
| ^
|
||||
|
||||
error: no rules expected the token `?`
|
||||
--> $DIR/macro-at-most-once-rep-ambig.rs:43:11
|
||||
--> $DIR/macro-at-most-once-rep-ambig.rs:36:11
|
||||
|
|
||||
LL | foo!(a?a?a); //~ ERROR no rules expected the token `?`
|
||||
| ^
|
||||
|
||||
error: no rules expected the token `?`
|
||||
--> $DIR/macro-at-most-once-rep-ambig.rs:44:11
|
||||
--> $DIR/macro-at-most-once-rep-ambig.rs:37:11
|
||||
|
|
||||
LL | foo!(a?a); //~ ERROR no rules expected the token `?`
|
||||
| ^
|
||||
|
||||
error: no rules expected the token `?`
|
||||
--> $DIR/macro-at-most-once-rep-ambig.rs:45:11
|
||||
--> $DIR/macro-at-most-once-rep-ambig.rs:38:11
|
||||
|
|
||||
LL | foo!(a?); //~ ERROR no rules expected the token `?`
|
||||
| ^
|
||||
|
||||
error: unexpected end of macro invocation
|
||||
--> $DIR/macro-at-most-once-rep-ambig.rs:46:5
|
||||
--> $DIR/macro-at-most-once-rep-ambig.rs:39:5
|
||||
|
|
||||
LL | barplus!(); //~ ERROR unexpected end of macro invocation
|
||||
| ^^^^^^^^^^^
|
||||
|
||||
error: unexpected end of macro invocation
|
||||
--> $DIR/macro-at-most-once-rep-ambig.rs:47:5
|
||||
--> $DIR/macro-at-most-once-rep-ambig.rs:40:5
|
||||
|
|
||||
LL | barstar!(); //~ ERROR unexpected end of macro invocation
|
||||
| ^^^^^^^^^^^
|
||||
|
||||
error: no rules expected the token `?`
|
||||
--> $DIR/macro-at-most-once-rep-ambig.rs:48:15
|
||||
--> $DIR/macro-at-most-once-rep-ambig.rs:41:15
|
||||
|
|
||||
LL | barplus!(a?); //~ ERROR no rules expected the token `?`
|
||||
| ^
|
||||
|
||||
error: unexpected end of macro invocation
|
||||
--> $DIR/macro-at-most-once-rep-ambig.rs:49:14
|
||||
--> $DIR/macro-at-most-once-rep-ambig.rs:42:14
|
||||
|
|
||||
LL | barplus!(a); //~ ERROR unexpected end of macro invocation
|
||||
| ^
|
||||
|
||||
error: no rules expected the token `?`
|
||||
--> $DIR/macro-at-most-once-rep-ambig.rs:50:15
|
||||
--> $DIR/macro-at-most-once-rep-ambig.rs:43:15
|
||||
|
|
||||
LL | barstar!(a?); //~ ERROR no rules expected the token `?`
|
||||
| ^
|
||||
|
||||
error: unexpected end of macro invocation
|
||||
--> $DIR/macro-at-most-once-rep-ambig.rs:51:14
|
||||
--> $DIR/macro-at-most-once-rep-ambig.rs:44:14
|
||||
|
|
||||
LL | barstar!(a); //~ ERROR unexpected end of macro invocation
|
||||
| ^
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue