]> git.lizzy.rs Git - rust.git/blob - tests/source/pattern-condense-wildcards.rs
Merge branch 'master' of https://github.com/rust-lang-nursery/rustfmt into config
[rust.git] / tests / source / 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, _, _, /* dont condense before */ _, _, _) => "pls work",
11     }
12 }