2018-08-06 22:54:51 -05:00
|
|
|
error: expected token: `,`
|
2019-03-11 17:07:07 -05:00
|
|
|
--> $DIR/missing-comma.rs:15:19
|
2018-07-15 01:50:08 -05:00
|
|
|
|
|
|
|
|
LL | println!("{}" a);
|
2018-08-06 22:54:51 -05:00
|
|
|
| ^
|
2018-07-15 01:50:08 -05:00
|
|
|
|
2018-08-06 22:54:51 -05:00
|
|
|
error: no rules expected the token `b`
|
2019-03-11 17:07:07 -05:00
|
|
|
--> $DIR/missing-comma.rs:17: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
|
2018-08-06 22:54:51 -05:00
|
|
|
|
2018-08-08 00:28:09 -05:00
|
|
|
error: no rules expected the token `e`
|
2019-03-11 17:07:07 -05:00
|
|
|
--> $DIR/missing-comma.rs:19: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
|
2018-08-08 00:28:09 -05:00
|
|
|
|
|
|
|
error: no rules expected the token `d`
|
2019-03-11 17:07:07 -05:00
|
|
|
--> $DIR/missing-comma.rs:21: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
|
2018-08-08 00:28:09 -05:00
|
|
|
|
|
|
|
error: no rules expected the token `d`
|
2019-03-11 17:07:07 -05:00
|
|
|
--> $DIR/missing-comma.rs:23: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-08-08 00:28:09 -05:00
|
|
|
|
2019-03-11 17:07:07 -05:00
|
|
|
error: unexpected end of macro invocation
|
|
|
|
--> $DIR/missing-comma.rs:25:23
|
|
|
|
|
|
|
|
|
LL | macro_rules! bar {
|
|
|
|
| ---------------- when calling this macro
|
|
|
|
...
|
|
|
|
LL | bar!(Level::Error, );
|
|
|
|
| ^ missing tokens in macro arguments
|
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
2018-07-15 01:50:08 -05:00
|
|
|
|