summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/issue-4244.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rustfmt/tests/target/issue-4244.rs')
-rw-r--r--src/tools/rustfmt/tests/target/issue-4244.rs20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/target/issue-4244.rs b/src/tools/rustfmt/tests/target/issue-4244.rs
new file mode 100644
index 000000000..8958ba99e
--- /dev/null
+++ b/src/tools/rustfmt/tests/target/issue-4244.rs
@@ -0,0 +1,20 @@
+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>;