rust/tests/rustdoc/doc-attr-comment-mix-42760.rs

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

19 lines
300 B
Rust
Raw Normal View History

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