fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
1.9 KiB68 linesraw
1error: expected token: `,`
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
18error: no rules expected the token `e`
19  --> $DIR/missing-comma.rs:23:21
20   |
21LL | macro_rules! foo {
22   | ---------------- when calling this macro
23...
24LL |     foo!(a, b, c, d e);
25   |                    -^ no rules expected this token in macro call
26   |                    |
27   |                    help: missing comma here
28
29error: no rules expected the token `d`
30  --> $DIR/missing-comma.rs:25:18
31   |
32LL | macro_rules! foo {
33   | ---------------- when calling this macro
34...
35LL |     foo!(a, b, c d, e);
36   |                 -^ no rules expected this token in macro call
37   |                 |
38   |                 help: missing comma here
39
40error: no rules expected the token `d`
41  --> $DIR/missing-comma.rs:27:18
42   |
43LL | macro_rules! foo {
44   | ---------------- when calling this macro
45...
46LL |     foo!(a, b, c d e);
47   |                  ^ no rules expected this token in macro call
48
49error: unexpected end of macro invocation
50  --> $DIR/missing-comma.rs:29:23
51   |
52LL | macro_rules! bar {
53   | ---------------- when calling this macro
54...
55LL |     bar!(Level::Error, );
56   |                       ^ missing tokens in macro arguments
57
58error: no rules expected the token `,`
59  --> $DIR/missing-comma.rs:32:38
60   |
61LL | macro_rules! check {
62   | ------------------ when calling this macro
63...
64LL |     check!(<str as Debug>::fmt, "fmt",);
65   |                                      ^ no rules expected this token in macro call
66
67error: aborting due to 7 previous errors
68