mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 06:22:00 +00:00
18 lines
464 B
Plaintext
18 lines
464 B
Plaintext
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 previous error
|
|
|