]> git.lizzy.rs Git - rust.git/blob - tests/source/pattern-condense-wildcards.rs
chore: backport 8157a3f0afe978d3e953420577f8344db7e905bf
[rust.git] / tests / source / pattern-condense-wildcards.rs
1 // rustfmt-normalize_comments: true
2 // rustfmt-condense_wildcard_suffixes: true
3
4 fn main() {
5     match x {
6         Butt (_,_) => "hah",
7         Tup (_) =>  "nah",
8         Quad (_,_, x,_) =>   " also no rewrite",
9         Quad (x, _, _, _) => "condense me pls",
10         Weird (x, _, _, /* don't condense before */ _, _, _) => "pls work",
11     }
12 }