about summary refs log tree commit diff
path: root/tests/rustdoc/doc-attr-comment-mix-42760.rs
blob: c457ac74d8d1b679e818acd35b009a3c283c7872 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// 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;