Skip to content

Commit 54bba4c

Browse files
committed
fix test
1 parent b2ed17b commit 54bba4c

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/test/ui/macros/macro-at-most-once-rep-ambig.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@ pub fn main() {
4444
barstar!(a); //~ ERROR unexpected end of macro invocation
4545
barplus!(+); // ok
4646
barstar!(*); // ok
47-
barplus!(a); // ok
47+
barplus!(a+); // ok
4848
barstar!(a*); // ok
4949
}

src/test/ui/macros/macro-at-most-once-rep-ambig.stderr

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,59 @@
11
error: `?` macro repetition does not allow a separator
2-
--> $DIR/macro-at-most-once-rep-ambig.rs:29:10
2+
--> $DIR/macro-at-most-once-rep-ambig.rs:22:10
33
|
44
LL | ($(a),?) => {} //~ ERROR `?` macro repetition does not allow a separator
55
| ^
66

77
error: no rules expected the token `?`
8-
--> $DIR/macro-at-most-once-rep-ambig.rs:43:11
8+
--> $DIR/macro-at-most-once-rep-ambig.rs:36:11
99
|
1010
LL | foo!(a?a?a); //~ ERROR no rules expected the token `?`
1111
| ^
1212

1313
error: no rules expected the token `?`
14-
--> $DIR/macro-at-most-once-rep-ambig.rs:44:11
14+
--> $DIR/macro-at-most-once-rep-ambig.rs:37:11
1515
|
1616
LL | foo!(a?a); //~ ERROR no rules expected the token `?`
1717
| ^
1818

1919
error: no rules expected the token `?`
20-
--> $DIR/macro-at-most-once-rep-ambig.rs:45:11
20+
--> $DIR/macro-at-most-once-rep-ambig.rs:38:11
2121
|
2222
LL | foo!(a?); //~ ERROR no rules expected the token `?`
2323
| ^
2424

2525
error: unexpected end of macro invocation
26-
--> $DIR/macro-at-most-once-rep-ambig.rs:46:5
26+
--> $DIR/macro-at-most-once-rep-ambig.rs:39:5
2727
|
2828
LL | barplus!(); //~ ERROR unexpected end of macro invocation
2929
| ^^^^^^^^^^^
3030

3131
error: unexpected end of macro invocation
32-
--> $DIR/macro-at-most-once-rep-ambig.rs:47:5
32+
--> $DIR/macro-at-most-once-rep-ambig.rs:40:5
3333
|
3434
LL | barstar!(); //~ ERROR unexpected end of macro invocation
3535
| ^^^^^^^^^^^
3636

3737
error: no rules expected the token `?`
38-
--> $DIR/macro-at-most-once-rep-ambig.rs:48:15
38+
--> $DIR/macro-at-most-once-rep-ambig.rs:41:15
3939
|
4040
LL | barplus!(a?); //~ ERROR no rules expected the token `?`
4141
| ^
4242

4343
error: unexpected end of macro invocation
44-
--> $DIR/macro-at-most-once-rep-ambig.rs:49:14
44+
--> $DIR/macro-at-most-once-rep-ambig.rs:42:14
4545
|
4646
LL | barplus!(a); //~ ERROR unexpected end of macro invocation
4747
| ^
4848

4949
error: no rules expected the token `?`
50-
--> $DIR/macro-at-most-once-rep-ambig.rs:50:15
50+
--> $DIR/macro-at-most-once-rep-ambig.rs:43:15
5151
|
5252
LL | barstar!(a?); //~ ERROR no rules expected the token `?`
5353
| ^
5454

5555
error: unexpected end of macro invocation
56-
--> $DIR/macro-at-most-once-rep-ambig.rs:51:14
56+
--> $DIR/macro-at-most-once-rep-ambig.rs:44:14
5757
|
5858
LL | barstar!(a); //~ ERROR unexpected end of macro invocation
5959
| ^

0 commit comments

Comments
 (0)