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

21 lines
529 B
Plaintext
Raw Normal View History

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