about summary refs log tree commit diff
path: root/tests/ui/parser/macro/macro-doc-comments-1.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/macro/macro-doc-comments-1.stderr')
-rw-r--r--tests/ui/parser/macro/macro-doc-comments-1.stderr20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/ui/parser/macro/macro-doc-comments-1.stderr b/tests/ui/parser/macro/macro-doc-comments-1.stderr
new file mode 100644
index 00000000000..eaeb62d2cfd
--- /dev/null
+++ b/tests/ui/parser/macro/macro-doc-comments-1.stderr
@@ -0,0 +1,20 @@
+error: no rules expected the token `!`
+  --> $DIR/macro-doc-comments-1.rs:6:5
+   |
+LL | macro_rules! outer {
+   | ------------------ when calling this macro
+...
+LL |     //! Inner
+   |     ^^^^^^^^^
+   |     |
+   |     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]) => ()
+   |       ^
+
+error: aborting due to previous error
+