]> git.lizzy.rs Git - rust.git/blob - tests/source/item-brace-style-same-line-where.rs
fix internal error for long closure types (#3653)
[rust.git] / tests / source / item-brace-style-same-line-where.rs
1 mod M {
2     enum A
3     {
4         A,
5     }
6
7     struct B
8     {
9         b: i32,
10     }
11
12     // For empty enums and structs, the brace remains on the same line.
13     enum C {}
14
15     struct D {}
16
17     enum A<T> where T: Copy {
18         A,
19     }
20
21     struct B<T> where T: Copy {
22         b: i32,
23     }
24
25     // For empty enums and structs, the brace remains on the same line.
26     enum C<T> where T: Copy {}
27
28     struct D<T> where T: Copy {}
29 }