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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
471 B
Plaintext
Raw Normal View History

2018-08-08 12:28:26 +00:00
error: no rules expected the token `a`
2022-01-19 15:24:49 +00:00
--> $DIR/macro-non-lifetime.rs:6:8
2018-08-08 12:28:26 +00:00
|
LL | macro_rules! m { ($x:lifetime) => { } }
| -------------- when calling this macro
...
2018-08-08 12:28:26 +00: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 12:28:26 +00:00
error: aborting due to previous error