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