rust/src/test/rustdoc/issue-42760.rs
Mukund Lakshman a8a40ea9a4 librustdoc: Use correct heading levels.
- Avoid multiple <h1>s on a page.
- The <h#> tags should follow a semantic hierarchy.
- Cap at h6 (no h7)
2021-10-04 05:01:04 -04:00

13 lines
191 B
Rust

// @has issue_42760/struct.NonGen.html
// @has - '//h2' 'Example'
/// Item docs.
///
#[doc="Hello there!"]
///
/// # Example
///
/// ```rust
/// // some code here
/// ```
pub struct NonGen;