mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-18 03:25:55 +00:00
41e8d152dc
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
18 lines
466 B
Plaintext
18 lines
466 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 1 previous error
|
|
|