]> git.proxmox.com Git - rustc.git/blob - src/tools/rustfmt/tests/source/issue-4926/struct_with_many_fields.rs
New upstream version 1.58.1+dfsg1
[rustc.git] / src / tools / rustfmt / tests / source / 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!(x, X {
19 a: 1_000, b: 1_000, c: 1_000, d: 1_000, e: 1_000, f: 1_000, g: 1_000, h: 1_000, i: 1_000, j: 1_000, ..
20 });
21 }