]> git.proxmox.com Git - rustc.git/blame - src/tools/rustfmt/tests/target/item-brace-style-always-next-line.rs
Update upstream source from tag 'upstream/1.52.1+dfsg1'
[rustc.git] / src / tools / rustfmt / tests / target / item-brace-style-always-next-line.rs
CommitLineData
f20569fa
XL
1// rustfmt-brace_style: AlwaysNextLine
2
3mod M
4{
5 enum A
6 {
7 A,
8 }
9
10 struct B
11 {
12 b: i32,
13 }
14
15 // For empty enums and structs, the brace remains on the same line.
16 enum C {}
17
18 struct D {}
19
20 enum A<T>
21 where
22 T: Copy,
23 {
24 A,
25 }
26
27 struct B<T>
28 where
29 T: Copy,
30 {
31 b: i32,
32 }
33
34 // For empty enums and structs, the brace remains on the same line.
35 enum C<T>
36 where
37 T: Copy, {}
38
39 struct D<T>
40 where
41 T: Copy, {}
42}