summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/source/issue-4244.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rustfmt/tests/source/issue-4244.rs')
-rw-r--r--src/tools/rustfmt/tests/source/issue-4244.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/source/issue-4244.rs b/src/tools/rustfmt/tests/source/issue-4244.rs
new file mode 100644
index 000000000..34b51085e
--- /dev/null
+++ b/src/tools/rustfmt/tests/source/issue-4244.rs
@@ -0,0 +1,16 @@
+pub struct SS {}
+
+pub type A /* A Comment */ = SS;
+
+pub type B // Comment
+// B
+= SS;
+
+pub type C
+ /* Comment C */ = SS;
+
+pub trait D <T> {
+ type E /* Comment E */ = SS;
+}
+
+type F<'a: 'static, T: Ord + 'static>: Eq + PartialEq where T: 'static + Copy /* x */ = Vec<u8>;