mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
41e8d152dc
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
17 lines
466 B
Text
17 lines
466 B
Text
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
|
|
|