summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/doc-of-generic-item.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rustfmt/tests/target/doc-of-generic-item.rs')
-rw-r--r--src/tools/rustfmt/tests/target/doc-of-generic-item.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/target/doc-of-generic-item.rs b/src/tools/rustfmt/tests/target/doc-of-generic-item.rs
index 2efc5e09a..80886e74f 100644
--- a/src/tools/rustfmt/tests/target/doc-of-generic-item.rs
+++ b/src/tools/rustfmt/tests/target/doc-of-generic-item.rs
@@ -12,3 +12,21 @@ struct Foo<
/// doc of N
const N: item,
>;
+
+// Non-doc pre-comment of Foo
+/// doc of Foo
+// Non-doc post-comment of Foo
+struct Foo<
+ // Non-doc pre-comment of 'a
+ /// doc of 'a
+ // Non-doc post-comment of 'a
+ 'a,
+ // Non-doc pre-comment of T
+ /// doc of T
+ // Non-doc post-comment of T
+ T,
+ // Non-doc pre-comment of N
+ /// doc of N
+ // Non-doc post-comment of N
+ const N: item,
+>;