From 6ad328ca772edc2474844a35133a6f902a80bccd Mon Sep 17 00:00:00 2001 From: Mark Mansi Date: Sat, 17 Feb 2018 11:42:11 -0600 Subject: [PATCH] Move macro-at-most-once-rep-ambig test to ui test --- .../macros}/macro-at-most-once-rep-ambig.rs | 0 .../macro-at-most-once-rep-ambig.stderr | 80 +++++++++++++++++++ 2 files changed, 80 insertions(+) rename src/test/{compile-fail => ui/macros}/macro-at-most-once-rep-ambig.rs (100%) create mode 100644 src/test/ui/macros/macro-at-most-once-rep-ambig.stderr diff --git a/src/test/compile-fail/macro-at-most-once-rep-ambig.rs b/src/test/ui/macros/macro-at-most-once-rep-ambig.rs similarity index 100% rename from src/test/compile-fail/macro-at-most-once-rep-ambig.rs rename to src/test/ui/macros/macro-at-most-once-rep-ambig.rs 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 new file mode 100644 index 0000000000000..67a77e0a481d8 --- /dev/null +++ b/src/test/ui/macros/macro-at-most-once-rep-ambig.stderr @@ -0,0 +1,80 @@ +error: no rules expected the token `?` + --> $DIR/macro-at-most-once-rep-ambig.rs:40:11 + | +40 | foo!(a?a?a); //~ ERROR no rules expected the token `?` + | ^ + +error: no rules expected the token `?` + --> $DIR/macro-at-most-once-rep-ambig.rs:41:11 + | +41 | foo!(a?a); //~ ERROR no rules expected the token `?` + | ^ + +error: no rules expected the token `?` + --> $DIR/macro-at-most-once-rep-ambig.rs:42:11 + | +42 | foo!(a?); //~ ERROR no rules expected the token `?` + | ^ + +error: no rules expected the token `?` + --> $DIR/macro-at-most-once-rep-ambig.rs:43:11 + | +43 | baz!(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 + | +44 | baz!(a?a); //~ ERROR no rules expected the token `?` + | ^ + +error: no rules expected the token `?` + --> $DIR/macro-at-most-once-rep-ambig.rs:45:11 + | +45 | baz!(a?); //~ ERROR no rules expected the token `?` + | ^ + +error: unexpected end of macro invocation + --> $DIR/macro-at-most-once-rep-ambig.rs:46:11 + | +46 | baz!(a,); //~ ERROR unexpected end of macro invocation + | ^ + +error: no rules expected the token `?` + --> $DIR/macro-at-most-once-rep-ambig.rs:47:11 + | +47 | baz!(a?a?a,); //~ ERROR no rules expected the token `?` + | ^ + +error: no rules expected the token `?` + --> $DIR/macro-at-most-once-rep-ambig.rs:48:11 + | +48 | baz!(a?a,); //~ ERROR no rules expected the token `?` + | ^ + +error: no rules expected the token `?` + --> $DIR/macro-at-most-once-rep-ambig.rs:49:11 + | +49 | baz!(a?,); //~ ERROR no rules expected the token `?` + | ^ + +error: unexpected end of macro invocation + --> $DIR/macro-at-most-once-rep-ambig.rs:50:5 + | +50 | barplus!(); //~ ERROR unexpected end of macro invocation + | ^^^^^^^^^^^ + +error: unexpected end of macro invocation + --> $DIR/macro-at-most-once-rep-ambig.rs:51:15 + | +51 | barplus!(a?); //~ ERROR unexpected end of macro invocation + | ^ + +error: unexpected end of macro invocation + --> $DIR/macro-at-most-once-rep-ambig.rs:52:15 + | +52 | barstar!(a?); //~ ERROR unexpected end of macro invocation + | ^ + +error: aborting due to 13 previous errors +