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