rust/rustfmt-core/tests/target/issue-1021.rs

23 lines
473 B
Rust
Raw Normal View History

// rustfmt-normalize_comments: true
fn main() {
match x {
S(true, .., true) => (),
S(true, ..) => (),
S(.., true) => (),
S(..) => (),
S(_) => (),
2017-08-27 00:41:30 -05:00
S(/* .. */ ..) => (),
S(/* .. */ .., true) => (),
}
match y {
(true, .., true) => (),
(true, ..) => (),
(.., true) => (),
(..) => (),
(_,) => (),
2017-08-27 00:41:30 -05:00
(/* .. */ ..) => (),
(/* .. */ .., true) => (),
}
}