]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/recover-tuple-pat.rs
Merge commit '598f0909568a51de8a2d1148f55a644fd8dffad0' into sync_cg_clif-2023-01-24
[rust.git] / tests / ui / parser / recover-tuple-pat.rs
1 // NOTE: This doesn't recover anymore.
2
3 fn main() {
4     let x = (1, 2, 3, 4);
5     match x {
6         (1, .., 4) => {}
7         (1, .=., 4) => { let _: usize = ""; }
8         //~^ ERROR expected pattern, found `.`
9         (.=., 4) => {}
10         (1, 2, 3, 4) => {}
11     }
12 }