about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2022-01-01 11:04:44 +0100
committerGuillaume Gomez <guillaume.gomez@huawei.com>2022-01-01 11:04:44 +0100
commitc6ee7bbe5197dbdec59acaab9b479f0610dfa5e1 (patch)
treeea09cd35ce9e079c64b898f83e46320c41e9c540
parentee97600a6f89963b08e1a16a36466a3d9b4783ba (diff)
downloadrust-c6ee7bbe5197dbdec59acaab9b479f0610dfa5e1.tar.gz
rust-c6ee7bbe5197dbdec59acaab9b479f0610dfa5e1.zip
Update mixed doc comments test
-rw-r--r--src/test/rustdoc/mixing-doc-comments-and-attrs.S3_top-doc.html3
-rw-r--r--src/test/rustdoc/mixing-doc-comments-and-attrs.rs7
2 files changed, 10 insertions, 0 deletions
diff --git a/src/test/rustdoc/mixing-doc-comments-and-attrs.S3_top-doc.html b/src/test/rustdoc/mixing-doc-comments-and-attrs.S3_top-doc.html
new file mode 100644
index 00000000000..a4ee4b14186
--- /dev/null
+++ b/src/test/rustdoc/mixing-doc-comments-and-attrs.S3_top-doc.html
@@ -0,0 +1,3 @@
+<div class="docblock"><p>Par 1</p>
+<p>Par 2</p>
+</div>
\ No newline at end of file
diff --git a/src/test/rustdoc/mixing-doc-comments-and-attrs.rs b/src/test/rustdoc/mixing-doc-comments-and-attrs.rs
index 1aedd4d107c..a27c5ae6d01 100644
--- a/src/test/rustdoc/mixing-doc-comments-and-attrs.rs
+++ b/src/test/rustdoc/mixing-doc-comments-and-attrs.rs
@@ -16,3 +16,10 @@ pub struct S1;
 #[doc = "Goodbye!"]
 /// Hello again!
 pub struct S2;
+
+// @has 'foo/struct.S3.html'
+// @snapshot S3_top-doc - '//details[@class="rustdoc-toggle top-doc"]/div[@class="docblock"]'
+/** Par 1
+*/ ///
+/// Par 2
+pub struct S3;