Add a test for #2691
This commit is contained in:
parent
353816c596
commit
0977bca5ed
2 changed files with 24 additions and 0 deletions
12
tests/source/doc-comment-with-example.rs
Normal file
12
tests/source/doc-comment-with-example.rs
Normal 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() {}
|
||||
12
tests/target/doc-comment-with-example.rs
Normal file
12
tests/target/doc-comment-with-example.rs
Normal 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() {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue