]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/missing-comma.stderr
424fefd00f87381e7fa0944fa8838a4de51801b4
[rust.git] / src / test / ui / macros / missing-comma.stderr
1 error: expected token: `,`
2   --> $DIR/missing-comma.rs:15:19
3    |
4 LL |     println!("{}" a);
5    |                   ^
6
7 error: no rules expected the token `b`
8   --> $DIR/missing-comma.rs:17:12
9    |
10 LL | macro_rules! foo {
11    | ---------------- when calling this macro
12 ...
13 LL |     foo!(a b);
14    |           -^ no rules expected this token in macro call
15    |           |
16    |           help: missing comma here
17
18 error: no rules expected the token `e`
19   --> $DIR/missing-comma.rs:19:21
20    |
21 LL | macro_rules! foo {
22    | ---------------- when calling this macro
23 ...
24 LL |     foo!(a, b, c, d e);
25    |                    -^ no rules expected this token in macro call
26    |                    |
27    |                    help: missing comma here
28
29 error: no rules expected the token `d`
30   --> $DIR/missing-comma.rs:21:18
31    |
32 LL | macro_rules! foo {
33    | ---------------- when calling this macro
34 ...
35 LL |     foo!(a, b, c d, e);
36    |                 -^ no rules expected this token in macro call
37    |                 |
38    |                 help: missing comma here
39
40 error: no rules expected the token `d`
41   --> $DIR/missing-comma.rs:23:18
42    |
43 LL | macro_rules! foo {
44    | ---------------- when calling this macro
45 ...
46 LL |     foo!(a, b, c d e);
47    |                  ^ no rules expected this token in macro call
48
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
59