summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/doc-of-generic-item.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 03:57:31 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 03:57:31 +0000
commitdc0db358abe19481e475e10c32149b53370f1a1c (patch)
treeab8ce99c4b255ce46f99ef402c27916055b899ee /src/tools/rustfmt/tests/target/doc-of-generic-item.rs
parentReleasing progress-linux version 1.71.1+dfsg1-2~progress7.99u1. (diff)
downloadrustc-dc0db358abe19481e475e10c32149b53370f1a1c.tar.xz
rustc-dc0db358abe19481e475e10c32149b53370f1a1c.zip
Merging upstream version 1.72.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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,
+>;