]> git.proxmox.com Git - rustc.git/blame - src/tools/rustfmt/tests/source/item-brace-style-prefer-same-line.rs
Update upstream source from tag 'upstream/1.52.1+dfsg1'
[rustc.git] / src / tools / rustfmt / tests / source / item-brace-style-prefer-same-line.rs
CommitLineData
f20569fa
XL
1// rustfmt-brace_style: PreferSameLine
2
3mod M {
4 enum A
5 {
6 A,
7 }
8
9 struct B
10 {
11 b: i32,
12 }
13
14 enum C {}
15
16 struct D {}
17
18 enum A<T> where T: Copy {
19 A,
20 }
21
22 struct B<T> where T: Copy {
23 b: i32,
24 }
25
26 enum C<T> where T: Copy {}
27
28 struct D<T> where T: Copy {}
29}