summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/doc-comment-with-example.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rustfmt/tests/target/doc-comment-with-example.rs')
-rw-r--r--src/tools/rustfmt/tests/target/doc-comment-with-example.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/target/doc-comment-with-example.rs b/src/tools/rustfmt/tests/target/doc-comment-with-example.rs
new file mode 100644
index 000000000..c5a4e779e
--- /dev/null
+++ b/src/tools/rustfmt/tests/target/doc-comment-with-example.rs
@@ -0,0 +1,11 @@
+// rustfmt-format_code_in_doc_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() {}