Files
rust/tests/ui/macros/macro-fragment-ident-underscore-error.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
503 B
Plaintext
Raw Normal View History

error: no rules expected reserved identifier `_`
2025-07-01 21:46:28 +05:00
--> $DIR/macro-fragment-ident-underscore-error.rs:11:19
2018-03-17 22:08:18 +03:00
|
LL | macro_rules! identity {
| --------------------- when calling this macro
...
2019-03-09 15:03:44 +03:00
LL | let identity!(_) = 10;
| ^ no rules expected this token in macro call
|
note: while trying to match meta-variable `$i:ident`
2025-07-01 21:46:28 +05:00
--> $DIR/macro-fragment-ident-underscore-error.rs:5:6
|
2025-07-01 21:46:28 +05:00
LL | ($i: ident) => {
| ^^^^^^^^^
2018-03-17 22:08:18 +03:00
error: aborting due to 1 previous error
2018-03-17 22:08:18 +03:00