diff --git a/src/test/ui/macros/macro-at-most-once-rep-ambig.rs b/src/test/ui/macros/macro-at-most-once-rep-ambig.rs index 63827ffeed045..e25c3ccfcd980 100644 --- a/src/test/ui/macros/macro-at-most-once-rep-ambig.rs +++ b/src/test/ui/macros/macro-at-most-once-rep-ambig.rs @@ -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 } diff --git a/src/test/ui/macros/macro-at-most-once-rep-ambig.stderr b/src/test/ui/macros/macro-at-most-once-rep-ambig.stderr index eb355c70b5593..cb1e360471cc8 100644 --- a/src/test/ui/macros/macro-at-most-once-rep-ambig.stderr +++ b/src/test/ui/macros/macro-at-most-once-rep-ambig.stderr @@ -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 | ^