]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/source/issue-1021.rs
Rollup merge of #107166 - petrochenkov:nooptable, r=oli-obk
[rust.git] / src / tools / rustfmt / tests / source / issue-1021.rs
1 // rustfmt-normalize_comments: true
2 fn main() {
3     match x {
4         S(true , .., true ) => (),
5         S(true , .. ) => (),
6         S(.., true ) => (),
7         S( .. ) => (),
8         S(_) => (),
9         S(/* .. */ .. ) => (),
10         S(/* .. */ .., true ) => (),
11     }
12
13     match y {
14         (true , .., true ) => (),
15         (true , .. ) => (),
16         (.., true ) => (),
17         ( .. ) => (),
18         (_,) => (),
19         (/* .. */ .. ) => (),
20         (/* .. */ .., true ) => (),
21     }
22 }