From 9918693037dce8aa4bb6f08741b6812923486c18 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 19 Jun 2024 11:26:03 +0200 Subject: Merging upstream version 1.76.0+dfsg1. Signed-off-by: Daniel Baumann --- .../doctest/doctest-markdown-trailing-docblock-48377.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/rustdoc/doctest/doctest-markdown-trailing-docblock-48377.rs (limited to 'tests/rustdoc/doctest/doctest-markdown-trailing-docblock-48377.rs') 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() {} -- cgit v1.2.3