rust/tests/ui/macros/macro-non-lifetime.stderr

18 lines
471 B
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error: no rules expected the token `a`
2022-01-19 09:24:49 -06:00
--> $DIR/macro-non-lifetime.rs:6:8
2018-08-08 07:28:26 -05:00
|
LL | macro_rules! m { ($x:lifetime) => { } }
| -------------- when calling this macro
...
2018-08-08 07:28:26 -05:00
LL | m!(a);
| ^ no rules expected this token in macro call
|
note: while trying to match meta-variable `$x:lifetime`
--> $DIR/macro-non-lifetime.rs:3:19
|
LL | macro_rules! m { ($x:lifetime) => { } }
| ^^^^^^^^^^^
2018-08-08 07:28:26 -05:00
error: aborting due to previous error