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