summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-ui/lints/deny-missing-docs-macro.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc-ui/lints/deny-missing-docs-macro.rs')
-rw-r--r--tests/rustdoc-ui/lints/deny-missing-docs-macro.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/rustdoc-ui/lints/deny-missing-docs-macro.rs b/tests/rustdoc-ui/lints/deny-missing-docs-macro.rs
new file mode 100644
index 000000000..b1c125317
--- /dev/null
+++ b/tests/rustdoc-ui/lints/deny-missing-docs-macro.rs
@@ -0,0 +1,8 @@
+//! foo
+
+#![deny(missing_docs)]
+
+#[macro_export]
+macro_rules! foo { //~ ERROR
+ () => {}
+}