]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/recover-tuple-pat.rs
Merge commit '7c21f91b15b7604f818565646b686d90f99d1baf' into clippyup
[rust.git] / src / test / 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 }