Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-i-m committed Apr 6, 2018
1 parent b2ed17b commit 54bba4c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/test/ui/macros/macro-at-most-once-rep-ambig.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
20 changes: 10 additions & 10 deletions src/test/ui/macros/macro-at-most-once-rep-ambig.stderr
Original file line number Diff line number Diff line change
@@ -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
| ^
Expand Down

0 comments on commit 54bba4c

Please sign in to comment.