rust/tests/rustdoc/strip-block-doc-comments-stars.rs

12 lines
307 B
Rust
Raw Normal View History

2022-01-18 16:56:37 +01:00
#![crate_name = "foo"]
2022-02-06 22:51:47 +01:00
// The goal of this test is to ensure that it won't be generated as a list because
2022-01-18 16:56:37 +01:00
// block doc comments can have their lines starting with a star.
// @has foo/fn.foo.html
// @snapshot docblock - '//*[@class="toggle top-doc"]//*[@class="docblock"]'
2022-01-18 16:56:37 +01:00
/**
* a
*/
pub fn foo() {}