mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 11:44:28 +00:00
13 lines
268 B
Rust
13 lines
268 B
Rust
// NOTE: This doesn't recover anymore.
|
|
|
|
fn main() {
|
|
let x = (1, 2, 3, 4);
|
|
match x {
|
|
(1, .., 4) => {}
|
|
(1, .=., 4) => { let _: usize = ""; }
|
|
//~^ ERROR expected pattern, found `.`
|
|
(.=., 4) => {}
|
|
(1, 2, 3, 4) => {}
|
|
}
|
|
}
|