mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
19 lines
300 B
Rust
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;
|