summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/issue_4584.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rustfmt/tests/target/issue_4584.rs')
-rw-r--r--src/tools/rustfmt/tests/target/issue_4584.rs32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/target/issue_4584.rs b/src/tools/rustfmt/tests/target/issue_4584.rs
new file mode 100644
index 000000000..20255bead
--- /dev/null
+++ b/src/tools/rustfmt/tests/target/issue_4584.rs
@@ -0,0 +1,32 @@
+// rustfmt-indent_style: Visual
+
+#[derive(Debug)]
+pub enum Case {
+ Upper,
+ Lower,
+}
+
+#[derive(Debug, Clone, PartialEq, Eq)]
+pub enum Case {
+ Upper,
+ Lower,
+}
+
+// NB - This formatting looks potentially off the desired state, but is
+// consistent with current behavior. Included here to provide a line wrapped
+// derive case with the changes applied to resolve issue #4584
+#[derive(Add,
+ Sub,
+ Mul,
+ Div,
+ Clone,
+ Copy,
+ Eq,
+ PartialEq,
+ Ord,
+ PartialOrd,
+ Debug,
+ Hash,
+ Serialize,
+ Mul)]
+struct Foo {}