summaryrefslogtreecommitdiffstats
path: root/tests/ui/macros/macro-at-most-once-rep-2018.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
commit218caa410aa38c29984be31a5229b9fa717560ee (patch)
treec54bd55eeb6e4c508940a30e94c0032fbd45d677 /tests/ui/macros/macro-at-most-once-rep-2018.stderr
parentReleasing progress-linux version 1.67.1+dfsg1-1~progress7.99u1. (diff)
downloadrustc-218caa410aa38c29984be31a5229b9fa717560ee.tar.xz
rustc-218caa410aa38c29984be31a5229b9fa717560ee.zip
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/ui/macros/macro-at-most-once-rep-2018.stderr')
-rw-r--r--tests/ui/macros/macro-at-most-once-rep-2018.stderr161
1 files changed, 161 insertions, 0 deletions
diff --git a/tests/ui/macros/macro-at-most-once-rep-2018.stderr b/tests/ui/macros/macro-at-most-once-rep-2018.stderr
new file mode 100644
index 000000000..696520b28
--- /dev/null
+++ b/tests/ui/macros/macro-at-most-once-rep-2018.stderr
@@ -0,0 +1,161 @@
+error: the `?` macro repetition operator does not take a separator
+ --> $DIR/macro-at-most-once-rep-2018.rs:11:10
+ |
+LL | ($(a),?) => {};
+ | ^
+
+error: no rules expected the token `?`
+ --> $DIR/macro-at-most-once-rep-2018.rs:25:11
+ |
+LL | macro_rules! foo {
+ | ---------------- when calling this macro
+...
+LL | foo!(a?);
+ | ^ no rules expected this token in macro call
+ |
+ = note: while trying to match sequence end
+
+error: no rules expected the token `?`
+ --> $DIR/macro-at-most-once-rep-2018.rs:26:11
+ |
+LL | macro_rules! foo {
+ | ---------------- when calling this macro
+...
+LL | foo!(a?a);
+ | ^ no rules expected this token in macro call
+ |
+ = note: while trying to match sequence end
+
+error: no rules expected the token `?`
+ --> $DIR/macro-at-most-once-rep-2018.rs:27:11
+ |
+LL | macro_rules! foo {
+ | ---------------- when calling this macro
+...
+LL | foo!(a?a?a);
+ | ^ no rules expected this token in macro call
+ |
+ = note: while trying to match sequence end
+
+error: unexpected end of macro invocation
+ --> $DIR/macro-at-most-once-rep-2018.rs:29:5
+ |
+LL | macro_rules! barplus {
+ | -------------------- when calling this macro
+...
+LL | barplus!();
+ | ^^^^^^^^^^ missing tokens in macro arguments
+ |
+note: while trying to match `+`
+ --> $DIR/macro-at-most-once-rep-2018.rs:15:11
+ |
+LL | ($(a)?+) => {}; // ok. matches "a+" and "+"
+ | ^
+
+error: unexpected end of macro invocation
+ --> $DIR/macro-at-most-once-rep-2018.rs:30:15
+ |
+LL | macro_rules! barplus {
+ | -------------------- when calling this macro
+...
+LL | barplus!(a);
+ | ^ missing tokens in macro arguments
+ |
+note: while trying to match `+`
+ --> $DIR/macro-at-most-once-rep-2018.rs:15:11
+ |
+LL | ($(a)?+) => {}; // ok. matches "a+" and "+"
+ | ^
+
+error: no rules expected the token `?`
+ --> $DIR/macro-at-most-once-rep-2018.rs:31:15
+ |
+LL | macro_rules! barplus {
+ | -------------------- when calling this macro
+...
+LL | barplus!(a?);
+ | ^ no rules expected this token in macro call
+ |
+note: while trying to match `+`
+ --> $DIR/macro-at-most-once-rep-2018.rs:15:11
+ |
+LL | ($(a)?+) => {}; // ok. matches "a+" and "+"
+ | ^
+
+error: no rules expected the token `?`
+ --> $DIR/macro-at-most-once-rep-2018.rs:32:15
+ |
+LL | macro_rules! barplus {
+ | -------------------- when calling this macro
+...
+LL | barplus!(a?a);
+ | ^ no rules expected this token in macro call
+ |
+note: while trying to match `+`
+ --> $DIR/macro-at-most-once-rep-2018.rs:15:11
+ |
+LL | ($(a)?+) => {}; // ok. matches "a+" and "+"
+ | ^
+
+error: unexpected end of macro invocation
+ --> $DIR/macro-at-most-once-rep-2018.rs:36:5
+ |
+LL | macro_rules! barstar {
+ | -------------------- when calling this macro
+...
+LL | barstar!();
+ | ^^^^^^^^^^ missing tokens in macro arguments
+ |
+note: while trying to match `*`
+ --> $DIR/macro-at-most-once-rep-2018.rs:19:11
+ |
+LL | ($(a)?*) => {}; // ok. matches "a*" and "*"
+ | ^
+
+error: unexpected end of macro invocation
+ --> $DIR/macro-at-most-once-rep-2018.rs:37:15
+ |
+LL | macro_rules! barstar {
+ | -------------------- when calling this macro
+...
+LL | barstar!(a);
+ | ^ missing tokens in macro arguments
+ |
+note: while trying to match `*`
+ --> $DIR/macro-at-most-once-rep-2018.rs:19:11
+ |
+LL | ($(a)?*) => {}; // ok. matches "a*" and "*"
+ | ^
+
+error: no rules expected the token `?`
+ --> $DIR/macro-at-most-once-rep-2018.rs:38:15
+ |
+LL | macro_rules! barstar {
+ | -------------------- when calling this macro
+...
+LL | barstar!(a?);
+ | ^ no rules expected this token in macro call
+ |
+note: while trying to match `*`
+ --> $DIR/macro-at-most-once-rep-2018.rs:19:11
+ |
+LL | ($(a)?*) => {}; // ok. matches "a*" and "*"
+ | ^
+
+error: no rules expected the token `?`
+ --> $DIR/macro-at-most-once-rep-2018.rs:39:15
+ |
+LL | macro_rules! barstar {
+ | -------------------- when calling this macro
+...
+LL | barstar!(a?a);
+ | ^ no rules expected this token in macro call
+ |
+note: while trying to match `*`
+ --> $DIR/macro-at-most-once-rep-2018.rs:19:11
+ |
+LL | ($(a)?*) => {}; // ok. matches "a*" and "*"
+ | ^
+
+error: aborting due to 12 previous errors
+