]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/target/item-brace-style-same-line-where.rs
Rollup merge of #87453 - ibraheemdev:i-68697, r=wesleywiser
[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 }