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