]> git.lizzy.rs Git - rust.git/blob - tests/source/pattern-condense-wildcards.rs
Condense suffix strings of simple wildcards in patterns
[rust.git] / tests / source / pattern-condense-wildcards.rs
1 // rustfmt-condense_wildcard_suffices: true
2
3 fn main() {
4     match x {
5         Butt (_,_) => "hah",
6         Tup (_) =>  "nah",
7         Quad (_,_, x,_) =>   " also no rewrite",
8         Quad (x, _, _, _) => "condense me pls",
9         Weird (x, _, _, /* dont condense before */ _, _, _) => "pls work",
10     }
11 }