]> git.lizzy.rs Git - rust.git/blob - tests/target/item-brace-style-prefer-same-line.rs
Merge pull request #681 from rust-lang-nursery/comment-style
[rust.git] / tests / target / item-brace-style-prefer-same-line.rs
1 // rustfmt-item_brace_style: PreferSameLine
2
3 mod M {
4     enum A {
5         A,
6     }
7
8     struct B {
9         b: i32,
10     }
11
12     enum C {}
13
14     struct D {}
15
16     enum A<T>
17         where T: Copy {
18         A,
19     }
20
21     struct B<T>
22         where T: Copy {
23         b: i32,
24     }
25
26     enum C<T>
27         where T: Copy {}
28
29     struct D<T>
30         where T: Copy {}
31 }