mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-13 09:05:00 +00:00
28 lines
482 B
Rust
28 lines
482 B
Rust
fn main() {
|
|
match x {
|
|
S(true, .., true) => (),
|
|
S(true, ..) => (),
|
|
S(.., true) => (),
|
|
S(..) => (),
|
|
S(_) => (),
|
|
S(// ..
|
|
..) => (),
|
|
S(// ..
|
|
..,
|
|
true) => (),
|
|
}
|
|
|
|
match y {
|
|
(true, .., true) => (),
|
|
(true, ..) => (),
|
|
(.., true) => (),
|
|
(..) => (),
|
|
(_,) => (),
|
|
(// ..
|
|
..) => (),
|
|
(// ..
|
|
..,
|
|
true) => (),
|
|
}
|
|
}
|