rust/tests/ui/parser/macro/macro-doc-comments-2.stderr
Nicholas Nethercote dd2b027d5d Tweak more warnings.
Much like the previous commit.

I think the removal of "the token" in each message is fine here. There
are many more error messages that mention tokens without saying "the
token" than those that do say it.
2024-10-28 14:20:28 +11:00

21 lines
521 B
Plaintext

error: no rules expected `[`
--> $DIR/macro-doc-comments-2.rs:6:5
|
LL | macro_rules! inner {
| ------------------ when calling this macro
...
LL | /// Outer
| ^^^^^^^^^
| |
| no rules expected this token in macro call
| outer doc comments expand to `#[doc = "..."]`, which is what this macro attempted to match
|
note: while trying to match `!`
--> $DIR/macro-doc-comments-2.rs:2:7
|
LL | (#![$inner:meta]) => ()
| ^
error: aborting due to 1 previous error