]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/source/issue-4926/deeply_nested_struct.rs
Rollup merge of #89876 - AlexApps99:const_ops, r=oli-obk
[rust.git] / src / tools / rustfmt / tests / source / issue-4926 / deeply_nested_struct.rs
1
2 // rustfmt-struct_field_align_threshold: 30
3
4 struct X {
5     a: i32,
6     b: i32,
7     c: i32,
8 }
9
10 fn test(x: X) {
11     let d = {
12         let e = {
13             let f = {
14                 let g = {
15                     let h = {
16                         let i = {
17                             let j = {
18                                 matches!(
19                                     x,
20                                     X { a: 1_000, b: 1_000, .. }
21                                 )
22                             };
23                             j
24                         };
25                         i
26                     };
27                     h
28                 };
29                 g
30             };
31             f
32         };
33         e
34     };
35 }