rust/tests/ui/parser/recover/recover-tuple-pat.rs
2023-11-16 16:58:41 +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) => {}
}
}