]> git.proxmox.com Git - rustc.git/blob - src/tools/rustfmt/tests/target/wrap_comments_should_not_imply_format_doc_comments.rs
New upstream version 1.52.1+dfsg1
[rustc.git] / src / tools / rustfmt / tests / target / wrap_comments_should_not_imply_format_doc_comments.rs
1 // rustfmt-wrap_comments: true
2
3 /// Foo
4 ///
5 /// # Example
6 /// ```
7 /// # #![cfg_attr(not(dox), feature(cfg_target_feature, target_feature, stdsimd))]
8 /// # #![cfg_attr(not(dox), no_std)]
9 /// fn foo() { }
10 /// ```
11 fn foo() {}
12
13 /// A long commment for wrapping
14 /// This is a long long long long long long long long long long long long long
15 /// long long long long long long long sentence.
16 fn bar() {}