]> git.lizzy.rs Git - rust.git/blob - tests/source/item-brace-style-prefer-same-line.rs
Prevent duplicate comma when formatting struct pattern with ".."
[rust.git] / tests / source / item-brace-style-prefer-same-line.rs
1 // rustfmt-brace_style: PreferSameLine
2
3 mod 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 }