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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
307 B
Rust
Raw Normal View History

2022-01-18 09:56:37 -06:00
#![crate_name = "foo"]
2022-02-06 15:51:47 -06:00
// The goal of this test is to ensure that it won't be generated as a list because
2022-01-18 09:56:37 -06: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 09:56:37 -06:00
/**
* a
*/
pub fn foo() {}