rust/tests/ui/parser/recover-tuple-pat.rs
2023-01-11 09:32:08 +00:00

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) => {}
}
}