summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-ui/no-crate-level-doc-lint.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc-ui/no-crate-level-doc-lint.rs')
-rw-r--r--tests/rustdoc-ui/no-crate-level-doc-lint.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/rustdoc-ui/no-crate-level-doc-lint.rs b/tests/rustdoc-ui/no-crate-level-doc-lint.rs
new file mode 100644
index 000000000..a186410ac
--- /dev/null
+++ b/tests/rustdoc-ui/no-crate-level-doc-lint.rs
@@ -0,0 +1,6 @@
+// error-pattern: no documentation found
+// normalize-stderr-test: "nightly|beta|1\.[0-9][0-9]\.[0-9]" -> "$$CHANNEL"
+#![deny(rustdoc::missing_crate_level_docs)]
+//^~ NOTE defined here
+
+pub fn foo() {}