rust/tests/rustdoc/doc-attr-comment-mix-42760.rs
2024-06-24 11:08:41 +02:00

19 lines
300 B
Rust

// https://github.com/rust-lang/rust/issues/42760
#![crate_name="foo"]
#![allow(rustdoc::invalid_rust_codeblocks)]
//@ has foo/struct.NonGen.html
//@ has - '//h2' 'Example'
/// Item docs.
///
#[doc="Hello there!"]
///
/// # Example
///
/// ```rust
/// // some code here
/// ```
pub struct NonGen;