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

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-1.rs:6:5
2018-10-20 15:36:17 -05:00
|
LL | macro_rules! outer {
| ------------------ when calling this macro
...
LL | //! Inner
2022-07-04 03:42:40 -05:00
| ^^^^^^^^^
| |
| no rules expected this token in macro call
| inner doc comments expand to `#![doc = "..."]`, which is what this macro attempted to match
|
note: while trying to match `[`
--> $DIR/macro-doc-comments-1.rs:2:7
|
LL | (#[$outer:meta]) => ()
| ^
2018-10-20 15:36:17 -05:00
error: aborting due to previous error