de10113c74
Add more patterns and types
19 lines
393 B
Rust
19 lines
393 B
Rust
// 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,
|
|
_,
|
|
_,
|
|
// dont condense before
|
|
..
|
|
) => "pls work",
|
|
}
|
|
}
|