summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/wrap_comments_should_not_imply_format_doc_comments.rs
blob: 6ccecc7e0bbe660a5bb34f527c5a15c4bed86410 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 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() {}

/// A long comment for wrapping
/// This is a long long long long long long long long long long long long long
/// long long long long long long long sentence.
fn bar() {}