about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMark Mansi <markm@cs.wisc.edu>2018-02-17 11:42:11 -0600
committerMark Mansi <markm@cs.wisc.edu>2018-02-17 11:42:11 -0600
commit6ad328ca772edc2474844a35133a6f902a80bccd (patch)
tree852c78b188a316b012b93c1e7a01046c3ca981d7
parentb298607864b76ea6b7b7a4b8bb482472f1604c8d (diff)
downloadrust-6ad328ca772edc2474844a35133a6f902a80bccd.tar.gz
rust-6ad328ca772edc2474844a35133a6f902a80bccd.zip
Move macro-at-most-once-rep-ambig test to ui test
-rw-r--r--src/test/ui/macros/macro-at-most-once-rep-ambig.rs (renamed from src/test/compile-fail/macro-at-most-once-rep-ambig.rs)0
-rw-r--r--src/test/ui/macros/macro-at-most-once-rep-ambig.stderr80
2 files changed, 80 insertions, 0 deletions
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
index a5660f8b41f..a5660f8b41f 100644
--- a/src/test/compile-fail/macro-at-most-once-rep-ambig.rs
+++ b/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 00000000000..67a77e0a481
--- /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
+