]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/target/pattern-condense-wildcards.rs
Auto merge of #84549 - tmiasko:static-initializer, r=varkor
[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 }