]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/target/issue-4926/struct_with_many_fields.rs
Merge commit 'd822110d3b5625b9dc80ccc442e06fc3cc851d76' into clippyup
[rust.git] / src / tools / rustfmt / tests / target / issue-4926 / struct_with_many_fields.rs
1 // rustfmt-struct_field_align_threshold: 30
2
3 struct X {
4     a: i32,
5     b: i32,
6     c: i32,
7     d: i32,
8     e: i32,
9     f: i32,
10     g: i32,
11     h: i32,
12     i: i32,
13     j: i32,
14     k: i32,
15 }
16
17 fn test(x: X) {
18     let y = matches!(
19         x,
20         X {
21             a: 1_000,
22             b: 1_000,
23             c: 1_000,
24             d: 1_000,
25             e: 1_000,
26             f: 1_000,
27             g: 1_000,
28             h: 1_000,
29             i: 1_000,
30             j: 1_000,
31             ..
32         }
33     );
34 }