]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/target/normalize_doc_attributes_should_not_imply_format_doc_comments.rs
Rollup merge of #85361 - bjorn3:rustdoc_target_json_path_canonicalize, r=jyn514
[rust.git] / src / tools / rustfmt / tests / target / normalize_doc_attributes_should_not_imply_format_doc_comments.rs
1 // rustfmt-normalize_doc_attributes: 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 ///
12 fn foo() {}
13
14 ///Bar documents
15 fn bar() {}