rust/tests/ui/parser/macro/macro-doc-comments-2.stderr

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

21 lines
529 B
Plaintext
Raw Normal View History

2018-10-20 15:36:17 -05:00
error: no rules expected the token `[`
2018-12-25 09:56:47 -06:00
--> $DIR/macro-doc-comments-2.rs:6:5
2018-10-20 15:36:17 -05:00
|
LL | macro_rules! inner {
| ------------------ when calling this macro
...
LL | /// Outer
2022-07-04 03:42:40 -05:00
| ^^^^^^^^^
| |
| 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]) => ()
| ^
2018-10-20 15:36:17 -05:00
error: aborting due to previous error