mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
41e8d152dc
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
18 lines
473 B
Plaintext
18 lines
473 B
Plaintext
error: no rules expected the token `a`
|
|
--> $DIR/macro-non-lifetime.rs:6:8
|
|
|
|
|
LL | macro_rules! m { ($x:lifetime) => { } }
|
|
| -------------- when calling this macro
|
|
...
|
|
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) => { } }
|
|
| ^^^^^^^^^^^
|
|
|
|
error: aborting due to 1 previous error
|
|
|