]> git.lizzy.rs Git - rust.git/blob - tests/target/item-brace-style-always-next-line.rs
Merge pull request #618 from zyphrus/master
[rust.git] / tests / target / item-brace-style-always-next-line.rs
1 // rustfmt-item_brace_style: AlwaysNextLine
2
3 mod M {
4     enum A
5     {
6         A,
7     }
8
9     struct B
10     {
11         b: i32,
12     }
13
14     // For empty enums and structs, the brace remains on the same line.
15     enum C {}
16
17     struct D {}
18
19     enum A<T>
20         where T: Copy
21     {
22         A,
23     }
24
25     struct B<T>
26         where T: Copy
27     {
28         b: i32,
29     }
30
31     // For empty enums and structs, the brace remains on the same line.
32     enum C<T>
33         where T: Copy {}
34
35     struct D<T>
36         where T: Copy {}
37 }