108 lines
2.9 KiB
Plaintext
108 lines
2.9 KiB
Plaintext
|
error: the `?` macro repetition operator does not take a separator
|
||
|
--> $DIR/macro-at-most-once-rep-2015.rs:10:10
|
||
|
|
|
||
|
LL | ($(a),?) => {};
|
||
|
| ^
|
||
|
|
||
|
error: no rules expected the token `?`
|
||
|
--> $DIR/macro-at-most-once-rep-2015.rs:24:11
|
||
|
|
|
||
|
LL | macro_rules! foo {
|
||
|
| ---------------- when calling this macro
|
||
|
...
|
||
|
LL | foo!(a?);
|
||
|
| ^ no rules expected this token in macro call
|
||
|
|
||
|
error: no rules expected the token `?`
|
||
|
--> $DIR/macro-at-most-once-rep-2015.rs:25:11
|
||
|
|
|
||
|
LL | macro_rules! foo {
|
||
|
| ---------------- when calling this macro
|
||
|
...
|
||
|
LL | foo!(a?a);
|
||
|
| ^ no rules expected this token in macro call
|
||
|
|
||
|
error: no rules expected the token `?`
|
||
|
--> $DIR/macro-at-most-once-rep-2015.rs:26:11
|
||
|
|
|
||
|
LL | macro_rules! foo {
|
||
|
| ---------------- when calling this macro
|
||
|
...
|
||
|
LL | foo!(a?a?a);
|
||
|
| ^ no rules expected this token in macro call
|
||
|
|
||
|
error: unexpected end of macro invocation
|
||
|
--> $DIR/macro-at-most-once-rep-2015.rs:28:5
|
||
|
|
|
||
|
LL | macro_rules! barplus {
|
||
|
| -------------------- when calling this macro
|
||
|
...
|
||
|
LL | barplus!();
|
||
|
| ^^^^^^^^^^^ missing tokens in macro arguments
|
||
|
|
||
|
error: unexpected end of macro invocation
|
||
|
--> $DIR/macro-at-most-once-rep-2015.rs:29:15
|
||
|
|
|
||
|
LL | macro_rules! barplus {
|
||
|
| -------------------- when calling this macro
|
||
|
...
|
||
|
LL | barplus!(a);
|
||
|
| ^ missing tokens in macro arguments
|
||
|
|
||
|
error: no rules expected the token `?`
|
||
|
--> $DIR/macro-at-most-once-rep-2015.rs:30:15
|
||
|
|
|
||
|
LL | macro_rules! barplus {
|
||
|
| -------------------- when calling this macro
|
||
|
...
|
||
|
LL | barplus!(a?);
|
||
|
| ^ no rules expected this token in macro call
|
||
|
|
||
|
error: no rules expected the token `?`
|
||
|
--> $DIR/macro-at-most-once-rep-2015.rs:31:15
|
||
|
|
|
||
|
LL | macro_rules! barplus {
|
||
|
| -------------------- when calling this macro
|
||
|
...
|
||
|
LL | barplus!(a?a);
|
||
|
| ^ no rules expected this token in macro call
|
||
|
|
||
|
error: unexpected end of macro invocation
|
||
|
--> $DIR/macro-at-most-once-rep-2015.rs:35:5
|
||
|
|
|
||
|
LL | macro_rules! barstar {
|
||
|
| -------------------- when calling this macro
|
||
|
...
|
||
|
LL | barstar!();
|
||
|
| ^^^^^^^^^^^ missing tokens in macro arguments
|
||
|
|
||
|
error: unexpected end of macro invocation
|
||
|
--> $DIR/macro-at-most-once-rep-2015.rs:36:15
|
||
|
|
|
||
|
LL | macro_rules! barstar {
|
||
|
| -------------------- when calling this macro
|
||
|
...
|
||
|
LL | barstar!(a);
|
||
|
| ^ missing tokens in macro arguments
|
||
|
|
||
|
error: no rules expected the token `?`
|
||
|
--> $DIR/macro-at-most-once-rep-2015.rs:37:15
|
||
|
|
|
||
|
LL | macro_rules! barstar {
|
||
|
| -------------------- when calling this macro
|
||
|
...
|
||
|
LL | barstar!(a?);
|
||
|
| ^ no rules expected this token in macro call
|
||
|
|
||
|
error: no rules expected the token `?`
|
||
|
--> $DIR/macro-at-most-once-rep-2015.rs:38:15
|
||
|
|
|
||
|
LL | macro_rules! barstar {
|
||
|
| -------------------- when calling this macro
|
||
|
...
|
||
|
LL | barstar!(a?a);
|
||
|
| ^ no rules expected this token in macro call
|
||
|
|
||
|
error: aborting due to 12 previous errors
|
||
|
|