summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/issue-4926/minimum_example.rs
blob: 06e18427465c9070c9eb200dfb0cfb621cac6dfb (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, .. });
}