Add a test for #2691

This commit is contained in:
topecongiro 2018-05-23 23:29:18 +09:00
parent 353816c596
commit 0977bca5ed
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,12 @@
// rustfmt-wrap_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() {}

View File

@ -0,0 +1,12 @@
// rustfmt-wrap_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() {}