fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: expected `,`, found `a` 2 --> $DIR/missing-comma.rs:19:19 3 | 4LL | println!("{}" a); 5 | ^ expected `,` 6 7error: no rules expected the token `b` 8 --> $DIR/missing-comma.rs:21:12 9 | 10LL | macro_rules! foo { 11 | ---------------- when calling this macro 12... 13LL | foo!(a b); 14 | -^ no rules expected this token in macro call 15 | | 16 | help: missing comma here 17 | 18note: while trying to match meta-variable `$a:ident` 19 --> $DIR/missing-comma.rs:2:6 20 | 21LL | ($a:ident) => (); 22 | ^^^^^^^^ 23 24error: no rules expected the token `e` 25 --> $DIR/missing-comma.rs:23:21 26 | 27LL | macro_rules! foo { 28 | ---------------- when calling this macro 29... 30LL | foo!(a, b, c, d e); 31 | -^ no rules expected this token in macro call 32 | | 33 | help: missing comma here 34 | 35note: while trying to match meta-variable `$d:ident` 36 --> $DIR/missing-comma.rs:5:36 37 | 38LL | ($a:ident, $b:ident, $c:ident, $d:ident) => (); 39 | ^^^^^^^^ 40 41error: no rules expected the token `d` 42 --> $DIR/missing-comma.rs:25:18 43 | 44LL | macro_rules! foo { 45 | ---------------- when calling this macro 46... 47LL | foo!(a, b, c d, e); 48 | -^ no rules expected this token in macro call 49 | | 50 | help: missing comma here 51 | 52note: while trying to match meta-variable `$c:ident` 53 --> $DIR/missing-comma.rs:4:26 54 | 55LL | ($a:ident, $b:ident, $c:ident) => (); 56 | ^^^^^^^^ 57 58error: no rules expected the token `d` 59 --> $DIR/missing-comma.rs:27:18 60 | 61LL | macro_rules! foo { 62 | ---------------- when calling this macro 63... 64LL | foo!(a, b, c d e); 65 | ^ no rules expected this token in macro call 66 | 67note: while trying to match meta-variable `$c:ident` 68 --> $DIR/missing-comma.rs:4:26 69 | 70LL | ($a:ident, $b:ident, $c:ident) => (); 71 | ^^^^^^^^ 72 73error: unexpected end of macro invocation 74 --> $DIR/missing-comma.rs:29:23 75 | 76LL | macro_rules! bar { 77 | ---------------- when calling this macro 78... 79LL | bar!(Level::Error, ); 80 | ^ missing tokens in macro arguments 81 | 82note: while trying to match meta-variable `$arg:tt` 83 --> $DIR/missing-comma.rs:10:19 84 | 85LL | ($lvl:expr, $($arg:tt)+) => {} 86 | ^^^^^^^ 87 88error: no rules expected the token `,` 89 --> $DIR/missing-comma.rs:32:38 90 | 91LL | macro_rules! check { 92 | ------------------ when calling this macro 93... 94LL | check!(<str as Debug>::fmt, "fmt",); 95 | ^ no rules expected this token in macro call 96 | 97note: while trying to match meta-variable `$expected:expr` 98 --> $DIR/missing-comma.rs:14:14 99 | 100LL | ($ty:ty, $expected:expr) => {}; 101 | ^^^^^^^^^^^^^^ 102 103error: aborting due to 7 previous errors 104