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