summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/source/wrap_comments_should_not_imply_format_doc_comments.rs
blob: 78b3ce146f2895a5e3a1fc4d0e9891e2aa530e90 (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 commment 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() {}