11error: expected token: `,`
2- --> $DIR/missing-comma.rs:10 :19
2+ --> $DIR/missing-comma.rs:15 :19
33 |
44LL | println!("{}" a);
55 | ^
66
77error: no rules expected the token `b`
8- --> $DIR/missing-comma.rs:12 :12
8+ --> $DIR/missing-comma.rs:17 :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:14 :21
19+ --> $DIR/missing-comma.rs:19 :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:16 :18
30+ --> $DIR/missing-comma.rs:21 :18
3131 |
3232LL | macro_rules! foo {
3333 | ---------------- when calling this macro
@@ -38,13 +38,22 @@ 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:18 :18
41+ --> $DIR/missing-comma.rs:23 :18
4242 |
4343LL | macro_rules! foo {
4444 | ---------------- when calling this macro
4545...
4646LL | foo!(a, b, c d e);
4747 | ^ no rules expected this token in macro call
4848
49- error: aborting due to 5 previous errors
49+ error: unexpected end of macro invocation
50+ --> $DIR/missing-comma.rs:25:23
51+ |
52+ LL | macro_rules! bar {
53+ | ---------------- when calling this macro
54+ ...
55+ LL | bar!(Level::Error, );
56+ | ^ missing tokens in macro arguments
57+
58+ error: aborting due to 6 previous errors
5059
0 commit comments