summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-ui/issues/issue-58473-2.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc-ui/issues/issue-58473-2.rs')
-rw-r--r--tests/rustdoc-ui/issues/issue-58473-2.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/rustdoc-ui/issues/issue-58473-2.rs b/tests/rustdoc-ui/issues/issue-58473-2.rs
new file mode 100644
index 000000000..000b6a329
--- /dev/null
+++ b/tests/rustdoc-ui/issues/issue-58473-2.rs
@@ -0,0 +1,12 @@
+// check-pass
+
+#![deny(rustdoc::private_doc_tests)]
+
+mod foo {
+ /**
+ Does nothing, returns `()`
+
+ yadda-yadda-yadda
+ */
+ fn foo() {}
+}