]> git.lizzy.rs Git - rust.git/blob - tests/target/item-brace-style-always-next-line.rs
Merge pull request #1615 from Mitranim/patch-1
[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
21         T: Copy,
22     {
23         A,
24     }
25
26     struct B<T>
27     where
28         T: Copy,
29     {
30         b: i32,
31     }
32
33     // For empty enums and structs, the brace remains on the same line.
34     enum C<T>
35     where
36         T: Copy, {}
37
38     struct D<T>
39     where
40         T: Copy, {}
41 }