diff options
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.rs | 14 |
1 files changed, 14 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 new file mode 100644 index 000000000..2efc5e09a --- /dev/null +++ b/src/tools/rustfmt/tests/target/doc-of-generic-item.rs @@ -0,0 +1,14 @@ +// 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 + 'a, + // Non-doc pre-comment of T + /// doc of T + T, + // Non-doc pre-comment of N + /// doc of N + const N: item, +>; |