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