summaryrefslogtreecommitdiff
path: root/tests/ui/underscore-ident-matcher.stderr
blob: a663f34cde1b15af9d1121c408126e74778a81a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
error: no rules expected the token `_`
  --> $DIR/underscore-ident-matcher.rs:8:19
   |
LL | macro_rules! identity {
   | --------------------- when calling this macro
...
LL |     let identity!(_) = 10;
   |                   ^ no rules expected this token in macro call
   |
note: while trying to match meta-variable `$i:ident`
  --> $DIR/underscore-ident-matcher.rs:2:6
   |
LL |     ($i: ident) => (
   |      ^^^^^^^^^

error: aborting due to 1 previous error