mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 19:53:46 +00:00
Add a test for #2691
This commit is contained in:
parent
353816c596
commit
0977bca5ed
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…
Reference in New Issue
Block a user