summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/source/issue-4926/minimum_example.rs
blob: 2c3045dea489e0f11698451f9f4bfa0b797cfdfa (plain)
1
2
3
4
5
6
7
8
9
10
// rustfmt-struct_field_align_threshold: 30

struct X { a: i32, b: i32 }

fn test(x: X) {
    let y = matches!(x, X {
        a: 1,
        ..
    });
}