summary refs log tree commit diff
path: root/tests/ui/macros/macro-non-lifetime.stderr
blob: 35040a2229bd3273311ab20677b34b8f922f347f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
error: no rules expected `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