fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
2.9 KiB107 linesraw
1error: the `?` macro repetition operator does not take a separator
2  --> $DIR/macro-at-most-once-rep-2015.rs:11:10
3   |
4LL |     ($(a),?) => {};
5   |          ^
6
7error: no rules expected the token `?`
8  --> $DIR/macro-at-most-once-rep-2015.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
16error: no rules expected the token `?`
17  --> $DIR/macro-at-most-once-rep-2015.rs:26:11
18   |
19LL | macro_rules! foo {
20   | ---------------- when calling this macro
21...
22LL |     foo!(a?a);
23   |           ^ no rules expected this token in macro call
24
25error: no rules expected the token `?`
26  --> $DIR/macro-at-most-once-rep-2015.rs:27:11
27   |
28LL | macro_rules! foo {
29   | ---------------- when calling this macro
30...
31LL |     foo!(a?a?a);
32   |           ^ no rules expected this token in macro call
33
34error: unexpected end of macro invocation
35  --> $DIR/macro-at-most-once-rep-2015.rs:29:5
36   |
37LL | macro_rules! barplus {
38   | -------------------- when calling this macro
39...
40LL |     barplus!();
41   |     ^^^^^^^^^^^ missing tokens in macro arguments
42
43error: unexpected end of macro invocation
44  --> $DIR/macro-at-most-once-rep-2015.rs:30:15
45   |
46LL | macro_rules! barplus {
47   | -------------------- when calling this macro
48...
49LL |     barplus!(a);
50   |               ^ missing tokens in macro arguments
51
52error: no rules expected the token `?`
53  --> $DIR/macro-at-most-once-rep-2015.rs:31:15
54   |
55LL | macro_rules! barplus {
56   | -------------------- when calling this macro
57...
58LL |     barplus!(a?);
59   |               ^ no rules expected this token in macro call
60
61error: no rules expected the token `?`
62  --> $DIR/macro-at-most-once-rep-2015.rs:32:15
63   |
64LL | macro_rules! barplus {
65   | -------------------- when calling this macro
66...
67LL |     barplus!(a?a);
68   |               ^ no rules expected this token in macro call
69
70error: unexpected end of macro invocation
71  --> $DIR/macro-at-most-once-rep-2015.rs:36:5
72   |
73LL | macro_rules! barstar {
74   | -------------------- when calling this macro
75...
76LL |     barstar!();
77   |     ^^^^^^^^^^^ missing tokens in macro arguments
78
79error: unexpected end of macro invocation
80  --> $DIR/macro-at-most-once-rep-2015.rs:37:15
81   |
82LL | macro_rules! barstar {
83   | -------------------- when calling this macro
84...
85LL |     barstar!(a);
86   |               ^ missing tokens in macro arguments
87
88error: no rules expected the token `?`
89  --> $DIR/macro-at-most-once-rep-2015.rs:38:15
90   |
91LL | macro_rules! barstar {
92   | -------------------- when calling this macro
93...
94LL |     barstar!(a?);
95   |               ^ no rules expected this token in macro call
96
97error: no rules expected the token `?`
98  --> $DIR/macro-at-most-once-rep-2015.rs:39:15
99   |
100LL | macro_rules! barstar {
101   | -------------------- when calling this macro
102...
103LL |     barstar!(a?a);
104   |               ^ no rules expected this token in macro call
105
106error: aborting due to 12 previous errors
107