summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/macro/macro-doc-comments-2.stderr
blob: 1dcd95f6fad4f235b810e4ed696d72b5873c2510 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
error: no rules expected the token `[`
  --> $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 previous error