mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-04 18:40:57 +03:00
Add test for block doc comments
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
<div class="docblock"><p>a</p>
|
||||
</div>
|
||||
@@ -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() {}
|
||||
Reference in New Issue
Block a user