about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJacob Pratt <jacob@jhpratt.dev>2024-11-10 19:12:26 -0500
committerGitHub <noreply@github.com>2024-11-10 19:12:26 -0500
commit5742e2255ead9841d869ddaeb4b0c853baf3d379 (patch)
tree1c623b7ca8679bf250531e4462e1d39473a336b6
parent7c53b5d206a8677d0ca35055522b9488c7f902cc (diff)
parent93ea5bb709b2542b58f9020d95d4c09a8ab640ce (diff)
downloadrust-5742e2255ead9841d869ddaeb4b0c853baf3d379.tar.gz
rust-5742e2255ead9841d869ddaeb4b0c853baf3d379.zip
Rollup merge of #132871 - lolbinarycat:rustdoc-heterogeneous-first-paragraph-85763, r=aDotInTheVoid
add regression test for #85763

closes #85763
-rw-r--r--tests/rustdoc/heterogeneous-concat.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/rustdoc/heterogeneous-concat.rs b/tests/rustdoc/heterogeneous-concat.rs
new file mode 100644
index 00000000000..8443ccc559e
--- /dev/null
+++ b/tests/rustdoc/heterogeneous-concat.rs
@@ -0,0 +1,11 @@
+// regression test for https://github.com/rust-lang/rust/issues/85763
+
+#![crate_name = "foo"]
+
+//@ has foo/index.html '//main' 'Some text that should be concatenated.'
+#[doc = " Some text"]
+#[doc = r" that should"]
+/// be concatenated.
+pub fn main() {
+    println!("Hello, world!");
+}