summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/source/issue-3194.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rustfmt/tests/source/issue-3194.rs')
-rw-r--r--src/tools/rustfmt/tests/source/issue-3194.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/source/issue-3194.rs b/src/tools/rustfmt/tests/source/issue-3194.rs
new file mode 100644
index 000000000..b80ce346b
--- /dev/null
+++ b/src/tools/rustfmt/tests/source/issue-3194.rs
@@ -0,0 +1,13 @@
+mod m { struct S where A: B; }
+
+mod n { struct Foo where A: B { foo: usize } }
+
+mod o { enum Bar where A: B { Bar } }
+
+mod with_comments {
+ mod m { struct S /* before where */ where A: B; /* after where */ }
+
+ mod n { struct Foo /* before where */ where A: B /* after where */ { foo: usize } }
+
+ mod o { enum Bar /* before where */ where A: B /* after where */ { Bar } }
+}