rust/tests/ui/underscore-ident-matcher.stderr
Nilstrieb 41e8d152dc Show number in error message even for one error
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-11-24 19:15:52 +01:00

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