]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/target/pattern-condense-wildcards.rs
Rollup merge of #85396 - jsha:top-doc-font-sizes, r=GuillaumeGomez
[rust.git] / src / tools / rustfmt / tests / target / 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 }