mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
18 lines
300 B
Rust
18 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;
|