fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
4.3 KiB161 linesraw
1error: the `?` macro repetition operator does not take a separator
2  --> $DIR/macro-at-most-once-rep-2018.rs:11:10
3   |
4LL |     ($(a),?) => {};
5   |          ^
6
7error: no rules expected the token `?`
8  --> $DIR/macro-at-most-once-rep-2018.rs:25:11
9   |
10LL | macro_rules! foo {
11   | ---------------- when calling this macro
12...
13LL |     foo!(a?);
14   |           ^ no rules expected this token in macro call
15   |
16   = note: while trying to match sequence end
17
18error: no rules expected the token `?`
19  --> $DIR/macro-at-most-once-rep-2018.rs:26:11
20   |
21LL | macro_rules! foo {
22   | ---------------- when calling this macro
23...
24LL |     foo!(a?a);
25   |           ^ no rules expected this token in macro call
26   |
27   = note: while trying to match sequence end
28
29error: no rules expected the token `?`
30  --> $DIR/macro-at-most-once-rep-2018.rs:27:11
31   |
32LL | macro_rules! foo {
33   | ---------------- when calling this macro
34...
35LL |     foo!(a?a?a);
36   |           ^ no rules expected this token in macro call
37   |
38   = note: while trying to match sequence end
39
40error: unexpected end of macro invocation
41  --> $DIR/macro-at-most-once-rep-2018.rs:29:5
42   |
43LL | macro_rules! barplus {
44   | -------------------- when calling this macro
45...
46LL |     barplus!();
47   |     ^^^^^^^^^^ missing tokens in macro arguments
48   |
49note: while trying to match `+`
50  --> $DIR/macro-at-most-once-rep-2018.rs:15:11
51   |
52LL |     ($(a)?+) => {}; // ok. matches "a+" and "+"
53   |           ^
54
55error: unexpected end of macro invocation
56  --> $DIR/macro-at-most-once-rep-2018.rs:30:15
57   |
58LL | macro_rules! barplus {
59   | -------------------- when calling this macro
60...
61LL |     barplus!(a);
62   |               ^ missing tokens in macro arguments
63   |
64note: while trying to match `+`
65  --> $DIR/macro-at-most-once-rep-2018.rs:15:11
66   |
67LL |     ($(a)?+) => {}; // ok. matches "a+" and "+"
68   |           ^
69
70error: no rules expected the token `?`
71  --> $DIR/macro-at-most-once-rep-2018.rs:31:15
72   |
73LL | macro_rules! barplus {
74   | -------------------- when calling this macro
75...
76LL |     barplus!(a?);
77   |               ^ no rules expected this token in macro call
78   |
79note: while trying to match `+`
80  --> $DIR/macro-at-most-once-rep-2018.rs:15:11
81   |
82LL |     ($(a)?+) => {}; // ok. matches "a+" and "+"
83   |           ^
84
85error: no rules expected the token `?`
86  --> $DIR/macro-at-most-once-rep-2018.rs:32:15
87   |
88LL | macro_rules! barplus {
89   | -------------------- when calling this macro
90...
91LL |     barplus!(a?a);
92   |               ^ no rules expected this token in macro call
93   |
94note: while trying to match `+`
95  --> $DIR/macro-at-most-once-rep-2018.rs:15:11
96   |
97LL |     ($(a)?+) => {}; // ok. matches "a+" and "+"
98   |           ^
99
100error: unexpected end of macro invocation
101  --> $DIR/macro-at-most-once-rep-2018.rs:36:5
102   |
103LL | macro_rules! barstar {
104   | -------------------- when calling this macro
105...
106LL |     barstar!();
107   |     ^^^^^^^^^^ missing tokens in macro arguments
108   |
109note: while trying to match `*`
110  --> $DIR/macro-at-most-once-rep-2018.rs:19:11
111   |
112LL |     ($(a)?*) => {}; // ok. matches "a*" and "*"
113   |           ^
114
115error: unexpected end of macro invocation
116  --> $DIR/macro-at-most-once-rep-2018.rs:37:15
117   |
118LL | macro_rules! barstar {
119   | -------------------- when calling this macro
120...
121LL |     barstar!(a);
122   |               ^ missing tokens in macro arguments
123   |
124note: while trying to match `*`
125  --> $DIR/macro-at-most-once-rep-2018.rs:19:11
126   |
127LL |     ($(a)?*) => {}; // ok. matches "a*" and "*"
128   |           ^
129
130error: no rules expected the token `?`
131  --> $DIR/macro-at-most-once-rep-2018.rs:38:15
132   |
133LL | macro_rules! barstar {
134   | -------------------- when calling this macro
135...
136LL |     barstar!(a?);
137   |               ^ no rules expected this token in macro call
138   |
139note: while trying to match `*`
140  --> $DIR/macro-at-most-once-rep-2018.rs:19:11
141   |
142LL |     ($(a)?*) => {}; // ok. matches "a*" and "*"
143   |           ^
144
145error: no rules expected the token `?`
146  --> $DIR/macro-at-most-once-rep-2018.rs:39:15
147   |
148LL | macro_rules! barstar {
149   | -------------------- when calling this macro
150...
151LL |     barstar!(a?a);
152   |               ^ no rules expected this token in macro call
153   |
154note: while trying to match `*`
155  --> $DIR/macro-at-most-once-rep-2018.rs:19:11
156   |
157LL |     ($(a)?*) => {}; // ok. matches "a*" and "*"
158   |           ^
159
160error: aborting due to 12 previous errors
161