]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/target/item-brace-style-prefer-same-line.rs
Rollup merge of #85361 - bjorn3:rustdoc_target_json_path_canonicalize, r=jyn514
[rust.git] / src / tools / rustfmt / tests / target / item-brace-style-prefer-same-line.rs
1 // rustfmt-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
18         T: Copy, {
19         A,
20     }
21
22     struct B<T>
23     where
24         T: Copy, {
25         b: i32,
26     }
27
28     enum C<T>
29     where
30         T: Copy, {}
31
32     struct D<T>
33     where
34         T: Copy, {}
35 }