]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/macro-non-lifetime.stderr
Rollup merge of #107127 - uweigand:s390x-sanitizer, r=Mark-Simulacrum
[rust.git] / tests / ui / macros / macro-non-lifetime.stderr
1 error: no rules expected the token `a`
2   --> $DIR/macro-non-lifetime.rs:6:8
3    |
4 LL | macro_rules! m { ($x:lifetime) => { } }
5    | -------------- when calling this macro
6 ...
7 LL |     m!(a);
8    |        ^ no rules expected this token in macro call
9    |
10 note: while trying to match meta-variable `$x:lifetime`
11   --> $DIR/macro-non-lifetime.rs:3:19
12    |
13 LL | macro_rules! m { ($x:lifetime) => { } }
14    |                   ^^^^^^^^^^^
15
16 error: aborting due to previous error
17