summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/issue-2781.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rustfmt/tests/target/issue-2781.rs')
-rw-r--r--src/tools/rustfmt/tests/target/issue-2781.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/target/issue-2781.rs b/src/tools/rustfmt/tests/target/issue-2781.rs
new file mode 100644
index 000000000..f144d716b
--- /dev/null
+++ b/src/tools/rustfmt/tests/target/issue-2781.rs
@@ -0,0 +1,11 @@
+pub // Oh, no. A line comment.
+struct Foo {}
+
+pub /* Oh, no. A block comment. */ struct Foo {}
+
+mod inner {
+ pub // Oh, no. A line comment.
+ struct Foo {}
+
+ pub /* Oh, no. A block comment. */ struct Foo {}
+}