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

13 lines
326 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",
2017-08-27 00:41:30 -05:00
Weird(x, _, _, /* dont condense before */ ..) => "pls work",
}
}