]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/source/item-brace-style-same-line-where.rs
Merge commit '23d11428de3e973b34a5090a78d62887f821c90e' into clippyup
[rust.git] / src / tools / rustfmt / tests / source / item-brace-style-same-line-where.rs
1 mod M {
2     enum A
3     {
4         A,
5     }
6
7     struct B
8     {
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 }