2020-08-31 04:45:50 -05:00
|
|
|
error: expected `,`, found `a`
|
2019-04-24 18:45:29 -05:00
|
|
|
--> $DIR/missing-comma.rs:19:19
|
2018-07-15 01:50:08 -05:00
|
|
|
|
|
|
|
|
LL | println!("{}" a);
|
2019-07-17 13:40:36 -05:00
|
|
|
| ^ expected `,`
|
2018-07-15 01:50:08 -05:00
|
|
|
|
2018-08-06 22:54:51 -05:00
|
|
|
error: no rules expected the token `b`
|
2019-04-24 18:45:29 -05:00
|
|
|
--> $DIR/missing-comma.rs:21:12
|
2018-08-06 22:54:51 -05:00
|
|
|
|
|
2018-10-24 13:34:23 -05:00
|
|
|
LL | macro_rules! foo {
|
|
|
|
| ---------------- when calling this macro
|
2018-10-23 19:18:14 -05:00
|
|
|
...
|
2018-10-24 13:34:23 -05:00
|
|
|
LL | foo!(a b);
|
2018-11-04 16:01:38 -06:00
|
|
|
| -^ no rules expected this token in macro call
|
2018-10-24 13:34:23 -05:00
|
|
|
| |
|
|
|
|
| help: missing comma here
|
2022-11-12 16:18:32 -06:00
|
|
|
|
|
|
|
|
note: while trying to match meta-variable `$a:ident`
|
|
|
|
--> $DIR/missing-comma.rs:2:6
|
|
|
|
|
|
|
|
|
LL | ($a:ident) => ();
|
|
|
|
| ^^^^^^^^
|
2018-08-06 22:54:51 -05:00
|
|
|
|
2018-08-08 00:28:09 -05:00
|
|
|
error: no rules expected the token `e`
|
2019-04-24 18:45:29 -05:00
|
|
|
--> $DIR/missing-comma.rs:23:21
|
2018-08-08 00:28:09 -05:00
|
|
|
|
|
2018-10-24 13:34:23 -05:00
|
|
|
LL | macro_rules! foo {
|
|
|
|
| ---------------- when calling this macro
|
2018-10-23 19:18:14 -05:00
|
|
|
...
|
2018-10-24 13:34:23 -05:00
|
|
|
LL | foo!(a, b, c, d e);
|
2018-11-04 16:01:38 -06:00
|
|
|
| -^ no rules expected this token in macro call
|
2018-10-24 13:34:23 -05:00
|
|
|
| |
|
|
|
|
| help: missing comma here
|
2022-11-12 16:18:32 -06:00
|
|
|
|
|
|
|
|
note: while trying to match meta-variable `$d:ident`
|
|
|
|
--> $DIR/missing-comma.rs:5:36
|
|
|
|
|
|
|
|
|
LL | ($a:ident, $b:ident, $c:ident, $d:ident) => ();
|
|
|
|
| ^^^^^^^^
|
2018-08-08 00:28:09 -05:00
|
|
|
|
|
|
|
error: no rules expected the token `d`
|
2019-04-24 18:45:29 -05:00
|
|
|
--> $DIR/missing-comma.rs:25:18
|
2018-08-08 00:28:09 -05:00
|
|
|
|
|
2018-10-24 13:34:23 -05:00
|
|
|
LL | macro_rules! foo {
|
|
|
|
| ---------------- when calling this macro
|
2018-10-23 19:18:14 -05:00
|
|
|
...
|
2018-10-24 13:34:23 -05:00
|
|
|
LL | foo!(a, b, c d, e);
|
2018-11-04 16:01:38 -06:00
|
|
|
| -^ no rules expected this token in macro call
|
2018-10-24 13:34:23 -05:00
|
|
|
| |
|
|
|
|
| help: missing comma here
|
2022-11-12 16:18:32 -06:00
|
|
|
|
|
|
|
|
note: while trying to match meta-variable `$c:ident`
|
|
|
|
--> $DIR/missing-comma.rs:4:26
|
|
|
|
|
|
|
|
|
LL | ($a:ident, $b:ident, $c:ident) => ();
|
|
|
|
| ^^^^^^^^
|
2018-08-08 00:28:09 -05:00
|
|
|
|
|
|
|
error: no rules expected the token `d`
|
2019-04-24 18:45:29 -05:00
|
|
|
--> $DIR/missing-comma.rs:27:18
|
2018-08-08 00:28:09 -05:00
|
|
|
|
|
2018-10-24 13:34:23 -05:00
|
|
|
LL | macro_rules! foo {
|
|
|
|
| ---------------- when calling this macro
|
2018-10-23 19:18:14 -05:00
|
|
|
...
|
2018-10-24 13:34:23 -05:00
|
|
|
LL | foo!(a, b, c d e);
|
2018-11-04 16:01:38 -06:00
|
|
|
| ^ no rules expected this token in macro call
|
2022-11-12 16:18:32 -06:00
|
|
|
|
|
|
|
|
note: while trying to match meta-variable `$c:ident`
|
|
|
|
--> $DIR/missing-comma.rs:4:26
|
|
|
|
|
|
|
|
|
LL | ($a:ident, $b:ident, $c:ident) => ();
|
|
|
|
| ^^^^^^^^
|
2018-08-08 00:28:09 -05:00
|
|
|
|
2019-03-11 17:07:07 -05:00
|
|
|
error: unexpected end of macro invocation
|
2019-04-24 18:45:29 -05:00
|
|
|
--> $DIR/missing-comma.rs:29:23
|
2019-03-11 17:07:07 -05:00
|
|
|
|
|
|
|
|
LL | macro_rules! bar {
|
|
|
|
| ---------------- when calling this macro
|
|
|
|
...
|
|
|
|
LL | bar!(Level::Error, );
|
|
|
|
| ^ missing tokens in macro arguments
|
2022-11-12 16:18:32 -06:00
|
|
|
|
|
|
|
|
note: while trying to match meta-variable `$arg:tt`
|
|
|
|
--> $DIR/missing-comma.rs:10:19
|
|
|
|
|
|
|
|
|
LL | ($lvl:expr, $($arg:tt)+) => {}
|
|
|
|
| ^^^^^^^
|
2019-03-11 17:07:07 -05:00
|
|
|
|
2019-04-24 18:45:29 -05:00
|
|
|
error: no rules expected the token `,`
|
|
|
|
--> $DIR/missing-comma.rs:32:38
|
|
|
|
|
|
|
|
|
LL | macro_rules! check {
|
|
|
|
| ------------------ when calling this macro
|
|
|
|
...
|
|
|
|
LL | check!(<str as Debug>::fmt, "fmt",);
|
|
|
|
| ^ no rules expected this token in macro call
|
2022-11-12 16:18:32 -06:00
|
|
|
|
|
|
|
|
note: while trying to match meta-variable `$expected:expr`
|
|
|
|
--> $DIR/missing-comma.rs:14:14
|
|
|
|
|
|
|
|
|
LL | ($ty:ty, $expected:expr) => {};
|
|
|
|
| ^^^^^^^^^^^^^^
|
2019-04-24 18:45:29 -05:00
|
|
|
|
|
|
|
error: aborting due to 7 previous errors
|
2018-07-15 01:50:08 -05:00
|
|
|
|