1 error: expected `,`, found `a`
2 --> $DIR/missing-comma.rs:19:19
7 error: no rules expected the token `b`
8 --> $DIR/missing-comma.rs:21:12
10 LL | macro_rules! foo {
11 | ---------------- when calling this macro
14 | -^ no rules expected this token in macro call
16 | help: missing comma here
18 note: while trying to match meta-variable `$a:ident`
19 --> $DIR/missing-comma.rs:2:6
21 LL | ($a:ident) => ();
24 error: no rules expected the token `e`
25 --> $DIR/missing-comma.rs:23:21
27 LL | macro_rules! foo {
28 | ---------------- when calling this macro
30 LL | foo!(a, b, c, d e);
31 | -^ no rules expected this token in macro call
33 | help: missing comma here
35 note: while trying to match meta-variable `$d:ident`
36 --> $DIR/missing-comma.rs:5:36
38 LL | ($a:ident, $b:ident, $c:ident, $d:ident) => ();
41 error: no rules expected the token `d`
42 --> $DIR/missing-comma.rs:25:18
44 LL | macro_rules! foo {
45 | ---------------- when calling this macro
47 LL | foo!(a, b, c d, e);
48 | -^ no rules expected this token in macro call
50 | help: missing comma here
52 note: while trying to match meta-variable `$c:ident`
53 --> $DIR/missing-comma.rs:4:26
55 LL | ($a:ident, $b:ident, $c:ident) => ();
58 error: no rules expected the token `d`
59 --> $DIR/missing-comma.rs:27:18
61 LL | macro_rules! foo {
62 | ---------------- when calling this macro
64 LL | foo!(a, b, c d e);
65 | ^ no rules expected this token in macro call
67 note: while trying to match meta-variable `$c:ident`
68 --> $DIR/missing-comma.rs:4:26
70 LL | ($a:ident, $b:ident, $c:ident) => ();
73 error: unexpected end of macro invocation
74 --> $DIR/missing-comma.rs:29:23
76 LL | macro_rules! bar {
77 | ---------------- when calling this macro
79 LL | bar!(Level::Error, );
80 | ^ missing tokens in macro arguments
82 note: while trying to match meta-variable `$arg:tt`
83 --> $DIR/missing-comma.rs:10:19
85 LL | ($lvl:expr, $($arg:tt)+) => {}
88 error: no rules expected the token `,`
89 --> $DIR/missing-comma.rs:32:38
91 LL | macro_rules! check {
92 | ------------------ when calling this macro
94 LL | check!(<str as Debug>::fmt, "fmt",);
95 | ^ no rules expected this token in macro call
97 note: while trying to match meta-variable `$expected:expr`
98 --> $DIR/missing-comma.rs:14:14
100 LL | ($ty:ty, $expected:expr) => {};
103 error: aborting due to 7 previous errors