1
1
error: expected token: `,`
2
- --> $DIR/missing-comma.rs:15 :19
2
+ --> $DIR/missing-comma.rs:19 :19
3
3
|
4
4
LL | println!("{}" a);
5
5
| ^
6
6
7
7
error: no rules expected the token `b`
8
- --> $DIR/missing-comma.rs:17 :12
8
+ --> $DIR/missing-comma.rs:21 :12
9
9
|
10
10
LL | macro_rules! foo {
11
11
| ---------------- when calling this macro
@@ -16,7 +16,7 @@ LL | foo!(a b);
16
16
| help: missing comma here
17
17
18
18
error: no rules expected the token `e`
19
- --> $DIR/missing-comma.rs:19 :21
19
+ --> $DIR/missing-comma.rs:23 :21
20
20
|
21
21
LL | macro_rules! foo {
22
22
| ---------------- when calling this macro
@@ -27,7 +27,7 @@ LL | foo!(a, b, c, d e);
27
27
| help: missing comma here
28
28
29
29
error: no rules expected the token `d`
30
- --> $DIR/missing-comma.rs:21 :18
30
+ --> $DIR/missing-comma.rs:25 :18
31
31
|
32
32
LL | macro_rules! foo {
33
33
| ---------------- when calling this macro
@@ -38,7 +38,7 @@ LL | foo!(a, b, c d, e);
38
38
| help: missing comma here
39
39
40
40
error: no rules expected the token `d`
41
- --> $DIR/missing-comma.rs:23 :18
41
+ --> $DIR/missing-comma.rs:27 :18
42
42
|
43
43
LL | macro_rules! foo {
44
44
| ---------------- when calling this macro
@@ -47,13 +47,22 @@ LL | foo!(a, b, c d e);
47
47
| ^ no rules expected this token in macro call
48
48
49
49
error: unexpected end of macro invocation
50
- --> $DIR/missing-comma.rs:25 :23
50
+ --> $DIR/missing-comma.rs:29 :23
51
51
|
52
52
LL | macro_rules! bar {
53
53
| ---------------- when calling this macro
54
54
...
55
55
LL | bar!(Level::Error, );
56
56
| ^ missing tokens in macro arguments
57
57
58
- error: aborting due to 6 previous errors
58
+ error: no rules expected the token `,`
59
+ --> $DIR/missing-comma.rs:32:38
60
+ |
61
+ LL | macro_rules! check {
62
+ | ------------------ when calling this macro
63
+ ...
64
+ LL | check!(<str as Debug>::fmt, "fmt",);
65
+ | ^ no rules expected this token in macro call
66
+
67
+ error: aborting due to 7 previous errors
59
68
0 commit comments