]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/target/item-brace-style-same-line-where.rs
Merge commit 'efa8f5521d3813cc897ba29ea0ef98c7aef66bb6' into rustfmt-subtree
[rust.git] / src / tools / rustfmt / tests / target / item-brace-style-same-line-where.rs
1 mod M {
2     enum A {
3         A,
4     }
5
6     struct B {
7         b: i32,
8     }
9
10     // For empty enums and structs, the brace remains on the same line.
11     enum C {}
12
13     struct D {}
14
15     enum A<T>
16     where
17         T: Copy,
18     {
19         A,
20     }
21
22     struct B<T>
23     where
24         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
32         T: Copy, {}
33
34     struct D<T>
35     where
36         T: Copy, {}
37 }