11error: expected token: `,`
2- --> $DIR/missing-comma.rs:15 :19
2+ --> $DIR/missing-comma.rs:19 :19
33 |
44LL | println!("{}" a);
55 | ^
66
77error: no rules expected the token `b`
8- --> $DIR/missing-comma.rs:17 :12
8+ --> $DIR/missing-comma.rs:21 :12
99 |
1010LL | macro_rules! foo {
1111 | ---------------- when calling this macro
@@ -16,7 +16,7 @@ LL | foo!(a b);
1616 | help: missing comma here
1717
1818error: no rules expected the token `e`
19- --> $DIR/missing-comma.rs:19 :21
19+ --> $DIR/missing-comma.rs:23 :21
2020 |
2121LL | macro_rules! foo {
2222 | ---------------- when calling this macro
@@ -27,7 +27,7 @@ LL | foo!(a, b, c, d e);
2727 | help: missing comma here
2828
2929error: no rules expected the token `d`
30- --> $DIR/missing-comma.rs:21 :18
30+ --> $DIR/missing-comma.rs:25 :18
3131 |
3232LL | macro_rules! foo {
3333 | ---------------- when calling this macro
@@ -38,7 +38,7 @@ LL | foo!(a, b, c d, e);
3838 | help: missing comma here
3939
4040error: no rules expected the token `d`
41- --> $DIR/missing-comma.rs:23 :18
41+ --> $DIR/missing-comma.rs:27 :18
4242 |
4343LL | macro_rules! foo {
4444 | ---------------- when calling this macro
@@ -47,13 +47,22 @@ LL | foo!(a, b, c d e);
4747 | ^ no rules expected this token in macro call
4848
4949error: unexpected end of macro invocation
50- --> $DIR/missing-comma.rs:25 :23
50+ --> $DIR/missing-comma.rs:29 :23
5151 |
5252LL | macro_rules! bar {
5353 | ---------------- when calling this macro
5454...
5555LL | bar!(Level::Error, );
5656 | ^ missing tokens in macro arguments
5757
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
5968
0 commit comments