rust/tests/source/pattern-condense-wildcards.rs

13 lines
344 B
Rust
Raw Normal View History

// 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",
2018-10-18 17:44:14 -05:00
Weird (x, _, _, /* don't condense before */ _, _, _) => "pls work",
}
}