rust/tests/source/doc-comment-with-example.rs

12 lines
242 B
Rust

// rustfmt-format_code_in_doc_comments: true
/// Foo
///
/// # Example
/// ```
/// # #![cfg_attr(not(dox), feature(cfg_target_feature, target_feature, stdsimd))]
/// # #![cfg_attr(not(dox), no_std)]
/// fn foo() { }
/// ```
///
fn foo() {}