]> git.lizzy.rs Git - rust.git/blob - tests/source/item-brace-style-always-next-line.rs
handle hard tabs when formatting trailing comments (#3836)
[rust.git] / tests / source / item-brace-style-always-next-line.rs
1 // rustfmt-brace_style: AlwaysNextLine
2
3 mod M {
4     enum A {
5         A,
6     }
7
8     struct B {
9         b: i32,
10     }
11
12     // For empty enums and structs, the brace remains on the same line.
13     enum C {}
14
15     struct D {}
16
17     enum A<T> where T: Copy {
18         A,
19     }
20
21     struct B<T> where T: Copy {
22         b: i32,
23     }
24
25     // For empty enums and structs, the brace remains on the same line.
26     enum C<T> where T: Copy {}
27
28     struct D<T> where T: Copy {}
29 }