summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-ui/block-doc-comment.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc-ui/block-doc-comment.rs')
-rw-r--r--tests/rustdoc-ui/block-doc-comment.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/rustdoc-ui/block-doc-comment.rs b/tests/rustdoc-ui/block-doc-comment.rs
new file mode 100644
index 000000000..ce529916e
--- /dev/null
+++ b/tests/rustdoc-ui/block-doc-comment.rs
@@ -0,0 +1,17 @@
+// check-pass
+// compile-flags:--test
+// normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
+
+// This test ensures that no code block is detected in the doc comments.
+
+pub mod Wormhole {
+ /** # Returns
+ *
+ */
+ pub fn foofoo() {}
+ /**
+ * # Returns
+ *
+ */
+ pub fn barbar() {}
+}