]> git.lizzy.rs Git - rust.git/blob - tests/target/item-brace-style-same-line-where.rs
Merge pull request #681 from rust-lang-nursery/comment-style
[rust.git] / tests / target / item-brace-style-same-line-where.rs
1 // rustfmt-item_brace_style: SameLineWhere
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>
18         where T: Copy
19     {
20         A,
21     }
22
23     struct B<T>
24         where T: Copy
25     {
26         b: i32,
27     }
28
29     // For empty enums and structs, the brace remains on the same line.
30     enum C<T>
31         where T: Copy {}
32
33     struct D<T>
34         where T: Copy {}
35 }