]> git.lizzy.rs Git - rust.git/blob - tests/source/item-brace-style-same-line-where.rs
Merge pull request #966 from MicahChalmer/skip-children-in-plain-write-mode
[rust.git] / tests / source / item-brace-style-same-line-where.rs
1 // rustfmt-item_brace_style: SameLineWhere
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> where T: Copy {
20         A,
21     }
22
23     struct B<T> where T: Copy {
24         b: i32,
25     }
26
27     // For empty enums and structs, the brace remains on the same line.
28     enum C<T> where T: Copy {}
29
30     struct D<T> where T: Copy {}
31 }