summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/macro-document-private.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc/macro-document-private.rs')
-rw-r--r--tests/rustdoc/macro-document-private.rs19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/rustdoc/macro-document-private.rs b/tests/rustdoc/macro-document-private.rs
new file mode 100644
index 000000000..d2496913f
--- /dev/null
+++ b/tests/rustdoc/macro-document-private.rs
@@ -0,0 +1,19 @@
+// Checks that private macros are documented when `--document-private-items`
+// is present.
+//
+// This is a regression test for issue #73754.
+//
+// compile-flags: --document-private-items
+
+#![feature(decl_macro)]
+
+
+// @has macro_document_private/macro.some_macro.html
+macro some_macro {
+ (a: tt) => {}
+}
+
+// @has macro_document_private/macro.another_macro.html
+macro_rules! another_macro {
+ (a: tt) => {}
+}