]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/target/issue_4584.rs
Merge commit 'd822110d3b5625b9dc80ccc442e06fc3cc851d76' into clippyup
[rust.git] / src / tools / rustfmt / tests / target / issue_4584.rs
1 // rustfmt-indent_style: Visual
2
3 #[derive(Debug)]
4 pub enum Case {
5     Upper,
6     Lower,
7 }
8
9 #[derive(Debug, Clone, PartialEq, Eq)]
10 pub enum Case {
11     Upper,
12     Lower,
13 }
14
15 // NB - This formatting looks potentially off the desired state, but is
16 // consistent with current behavior. Included here to provide a line wrapped
17 // derive case with the changes applied to resolve issue #4584
18 #[derive(Add,
19            Sub,
20            Mul,
21            Div,
22            Clone,
23            Copy,
24            Eq,
25            PartialEq,
26            Ord,
27            PartialOrd,
28            Debug,
29            Hash,
30            Serialize,
31            Mul)]
32 struct Foo {}