summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/doctest/doctest-markdown-trailing-docblock-48377.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc/doctest/doctest-markdown-trailing-docblock-48377.rs')
-rw-r--r--tests/rustdoc/doctest/doctest-markdown-trailing-docblock-48377.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/rustdoc/doctest/doctest-markdown-trailing-docblock-48377.rs b/tests/rustdoc/doctest/doctest-markdown-trailing-docblock-48377.rs
new file mode 100644
index 000000000..d481dc0dd
--- /dev/null
+++ b/tests/rustdoc/doctest/doctest-markdown-trailing-docblock-48377.rs
@@ -0,0 +1,15 @@
+// compile-flags:--test
+
+// https://github.com/rust-lang/rust/issues/48377
+
+//! This is a doc comment
+//!
+//! ```rust
+//! fn main() {}
+//! ```
+//!
+//! With a trailing code fence
+//! ```
+
+/// Some foo function
+pub fn foo() {}