summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/issue-4926/struct_with_many_fields.rs
blob: 96dfe14bf7dd1c92c1d35c60cbe0f2af3f293f62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// rustfmt-struct_field_align_threshold: 30

struct X {
    a: i32,
    b: i32,
    c: i32,
    d: i32,
    e: i32,
    f: i32,
    g: i32,
    h: i32,
    i: i32,
    j: i32,
    k: i32,
}

fn test(x: X) {
    let y = matches!(
        x,
        X {
            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,
            ..
        }
    );
}