about summary refs log tree commit diff
path: root/tests/ui/macros/macro-fragment-ident-underscore-error.stderr
blob: 929e4624e4b2e439911dd6bfd9c34ebd368a03f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
error: no rules expected reserved identifier `_`
  --> $DIR/macro-fragment-ident-underscore-error.rs:11: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/macro-fragment-ident-underscore-error.rs:5:6
   |
LL |     ($i: ident) => {
   |      ^^^^^^^^^

error: aborting due to 1 previous error