diff options
Diffstat (limited to 'tests/ui/parser/macro/macro-doc-comments-2.stderr')
-rw-r--r-- | tests/ui/parser/macro/macro-doc-comments-2.stderr | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/ui/parser/macro/macro-doc-comments-2.stderr b/tests/ui/parser/macro/macro-doc-comments-2.stderr new file mode 100644 index 000000000..1dcd95f6f --- /dev/null +++ b/tests/ui/parser/macro/macro-doc-comments-2.stderr @@ -0,0 +1,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 + |