2018-06-15 21:49:00 -05:00
|
|
|
error: the `?` macro repetition operator does not take a separator
|
2019-05-21 22:52:47 -05:00
|
|
|
--> $DIR/macro-at-most-once-rep-2018.rs:11:10
|
2018-06-15 21:49:00 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | ($(a),?) => {};
|
2018-06-15 21:49:00 -05:00
|
|
|
| ^
|
|
|
|
|
|
|
|
error: no rules expected the token `?`
|
2019-05-21 22:52:47 -05:00
|
|
|
--> $DIR/macro-at-most-once-rep-2018.rs:25:11
|
2018-06-15 21:49:00 -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
|
|
|
...
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | foo!(a?);
|
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 sequence end
|
2018-06-15 21:49:00 -05:00
|
|
|
|
|
|
|
error: no rules expected the token `?`
|
2019-05-21 22:52:47 -05:00
|
|
|
--> $DIR/macro-at-most-once-rep-2018.rs:26:11
|
2018-06-15 21:49:00 -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
|
|
|
...
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | foo!(a?a);
|
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 sequence end
|
2018-06-15 21:49:00 -05:00
|
|
|
|
|
|
|
error: no rules expected the token `?`
|
2019-05-21 22:52:47 -05:00
|
|
|
--> $DIR/macro-at-most-once-rep-2018.rs:27:11
|
2018-06-15 21:49:00 -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
|
|
|
...
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | foo!(a?a?a);
|
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 sequence end
|
2018-06-15 21:49:00 -05:00
|
|
|
|
|
|
|
error: unexpected end of macro invocation
|
2019-05-21 22:52:47 -05:00
|
|
|
--> $DIR/macro-at-most-once-rep-2018.rs:29:5
|
2018-06-15 21:49:00 -05:00
|
|
|
|
|
2018-10-24 13:34:23 -05:00
|
|
|
LL | macro_rules! barplus {
|
|
|
|
| -------------------- when calling this macro
|
2018-10-23 19:18:14 -05:00
|
|
|
...
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | barplus!();
|
2021-10-14 13:28:28 -05:00
|
|
|
| ^^^^^^^^^^ missing tokens in macro arguments
|
2022-11-12 16:18:32 -06:00
|
|
|
|
|
|
|
|
note: while trying to match `+`
|
|
|
|
--> $DIR/macro-at-most-once-rep-2018.rs:15:11
|
|
|
|
|
|
|
|
|
LL | ($(a)?+) => {}; // ok. matches "a+" and "+"
|
|
|
|
| ^
|
2018-06-15 21:49:00 -05:00
|
|
|
|
|
|
|
error: unexpected end of macro invocation
|
2019-05-21 22:52:47 -05:00
|
|
|
--> $DIR/macro-at-most-once-rep-2018.rs:30:15
|
2018-06-15 21:49:00 -05:00
|
|
|
|
|
2018-10-24 13:34:23 -05:00
|
|
|
LL | macro_rules! barplus {
|
|
|
|
| -------------------- when calling this macro
|
2018-10-23 19:18:14 -05:00
|
|
|
...
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | barplus!(a);
|
2018-11-04 16:01:38 -06:00
|
|
|
| ^ missing tokens in macro arguments
|
2022-11-12 16:18:32 -06:00
|
|
|
|
|
|
|
|
note: while trying to match `+`
|
|
|
|
--> $DIR/macro-at-most-once-rep-2018.rs:15:11
|
|
|
|
|
|
|
|
|
LL | ($(a)?+) => {}; // ok. matches "a+" and "+"
|
|
|
|
| ^
|
2018-06-15 21:49:00 -05:00
|
|
|
|
|
|
|
error: no rules expected the token `?`
|
2019-05-21 22:52:47 -05:00
|
|
|
--> $DIR/macro-at-most-once-rep-2018.rs:31:15
|
2018-06-15 21:49:00 -05:00
|
|
|
|
|
2018-10-24 13:34:23 -05:00
|
|
|
LL | macro_rules! barplus {
|
|
|
|
| -------------------- when calling this macro
|
2018-10-23 19:18:14 -05:00
|
|
|
...
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | barplus!(a?);
|
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 `+`
|
|
|
|
--> $DIR/macro-at-most-once-rep-2018.rs:15:11
|
|
|
|
|
|
|
|
|
LL | ($(a)?+) => {}; // ok. matches "a+" and "+"
|
|
|
|
| ^
|
2018-06-15 21:49:00 -05:00
|
|
|
|
|
|
|
error: no rules expected the token `?`
|
2019-05-21 22:52:47 -05:00
|
|
|
--> $DIR/macro-at-most-once-rep-2018.rs:32:15
|
2018-06-15 21:49:00 -05:00
|
|
|
|
|
2018-10-24 13:34:23 -05:00
|
|
|
LL | macro_rules! barplus {
|
|
|
|
| -------------------- when calling this macro
|
2018-10-23 19:18:14 -05:00
|
|
|
...
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | barplus!(a?a);
|
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 `+`
|
|
|
|
--> $DIR/macro-at-most-once-rep-2018.rs:15:11
|
|
|
|
|
|
|
|
|
LL | ($(a)?+) => {}; // ok. matches "a+" and "+"
|
|
|
|
| ^
|
2018-06-15 21:49:00 -05:00
|
|
|
|
|
|
|
error: unexpected end of macro invocation
|
2019-05-21 22:52:47 -05:00
|
|
|
--> $DIR/macro-at-most-once-rep-2018.rs:36:5
|
2018-06-15 21:49:00 -05:00
|
|
|
|
|
2018-10-24 13:34:23 -05:00
|
|
|
LL | macro_rules! barstar {
|
|
|
|
| -------------------- when calling this macro
|
2018-10-23 19:18:14 -05:00
|
|
|
...
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | barstar!();
|
2021-10-14 13:28:28 -05:00
|
|
|
| ^^^^^^^^^^ missing tokens in macro arguments
|
2022-11-12 16:18:32 -06:00
|
|
|
|
|
|
|
|
note: while trying to match `*`
|
|
|
|
--> $DIR/macro-at-most-once-rep-2018.rs:19:11
|
|
|
|
|
|
|
|
|
LL | ($(a)?*) => {}; // ok. matches "a*" and "*"
|
|
|
|
| ^
|
2018-06-15 21:49:00 -05:00
|
|
|
|
|
|
|
error: unexpected end of macro invocation
|
2019-05-21 22:52:47 -05:00
|
|
|
--> $DIR/macro-at-most-once-rep-2018.rs:37:15
|
2018-06-15 21:49:00 -05:00
|
|
|
|
|
2018-10-24 13:34:23 -05:00
|
|
|
LL | macro_rules! barstar {
|
|
|
|
| -------------------- when calling this macro
|
2018-10-23 19:18:14 -05:00
|
|
|
...
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | barstar!(a);
|
2018-11-04 16:01:38 -06:00
|
|
|
| ^ missing tokens in macro arguments
|
2022-11-12 16:18:32 -06:00
|
|
|
|
|
|
|
|
note: while trying to match `*`
|
|
|
|
--> $DIR/macro-at-most-once-rep-2018.rs:19:11
|
|
|
|
|
|
|
|
|
LL | ($(a)?*) => {}; // ok. matches "a*" and "*"
|
|
|
|
| ^
|
2018-06-15 21:49:00 -05:00
|
|
|
|
|
|
|
error: no rules expected the token `?`
|
2019-05-21 22:52:47 -05:00
|
|
|
--> $DIR/macro-at-most-once-rep-2018.rs:38:15
|
2018-06-15 21:49:00 -05:00
|
|
|
|
|
2018-10-24 13:34:23 -05:00
|
|
|
LL | macro_rules! barstar {
|
|
|
|
| -------------------- when calling this macro
|
2018-10-23 19:18:14 -05:00
|
|
|
...
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | barstar!(a?);
|
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 `*`
|
|
|
|
--> $DIR/macro-at-most-once-rep-2018.rs:19:11
|
|
|
|
|
|
|
|
|
LL | ($(a)?*) => {}; // ok. matches "a*" and "*"
|
|
|
|
| ^
|
2018-06-15 21:49:00 -05:00
|
|
|
|
|
|
|
error: no rules expected the token `?`
|
2019-05-21 22:52:47 -05:00
|
|
|
--> $DIR/macro-at-most-once-rep-2018.rs:39:15
|
2018-06-15 21:49:00 -05:00
|
|
|
|
|
2018-10-24 13:34:23 -05:00
|
|
|
LL | macro_rules! barstar {
|
|
|
|
| -------------------- when calling this macro
|
2018-10-23 19:18:14 -05:00
|
|
|
...
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | barstar!(a?a);
|
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 `*`
|
|
|
|
--> $DIR/macro-at-most-once-rep-2018.rs:19:11
|
|
|
|
|
|
|
|
|
LL | ($(a)?*) => {}; // ok. matches "a*" and "*"
|
|
|
|
| ^
|
2018-06-15 21:49:00 -05:00
|
|
|
|
|
|
|
error: aborting due to 12 previous errors
|
|
|
|
|