de10113c74
Add more patterns and types
37 lines
623 B
Rust
37 lines
623 B
Rust
// rustfmt-normalize_comments: true
|
|
fn main() {
|
|
match x {
|
|
S(true, .., true) => (),
|
|
S(true, ..) => (),
|
|
S(.., true) => (),
|
|
S(..) => (),
|
|
S(_) => (),
|
|
S(
|
|
// ..
|
|
..
|
|
) => (),
|
|
S(
|
|
// ..
|
|
..,
|
|
true,
|
|
) => (),
|
|
}
|
|
|
|
match y {
|
|
(true, .., true) => (),
|
|
(true, ..) => (),
|
|
(.., true) => (),
|
|
(..) => (),
|
|
(_,) => (),
|
|
(
|
|
// ..
|
|
..
|
|
) => (),
|
|
(
|
|
// ..
|
|
..,
|
|
true,
|
|
) => (),
|
|
}
|
|
}
|