Add test for block doc comments

This commit is contained in:
Guillaume Gomez 2022-01-18 16:56:37 +01:00
parent 2938be612d
commit 06b00ad199
2 changed files with 13 additions and 0 deletions

View file

@ -0,0 +1,2 @@
<div class="docblock"><p>a</p>
</div>

View file

@ -0,0 +1,11 @@
#![crate_name = "foo"]
// The goal of this test is to answer that it won't be generated as a list because
// block doc comments can have their lines starting with a star.
// @has foo/fn.foo.html
// @snapshot docblock - '//*[@class="rustdoc-toggle top-doc"]//*[@class="docblock"]'
/**
* a
*/
pub fn foo() {}