summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/pattern-condense-wildcards.rs
blob: a85a16004ad236782accb22b1f92ee2e6db4a787 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// rustfmt-normalize_comments: true
// rustfmt-condense_wildcard_suffixes: true

fn main() {
    match x {
        Butt(..) => "hah",
        Tup(_) => "nah",
        Quad(_, _, x, _) => " also no rewrite",
        Quad(x, ..) => "condense me pls",
        Weird(x, _, _, /* don't condense before */ ..) => "pls work",
    }
}