+// 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 `.`
- //~| ERROR mismatched types
(.=., 4) => {}
- //~^ ERROR expected pattern, found `.`
(1, 2, 3, 4) => {}
}
}
error: expected pattern, found `.`
- --> $DIR/recover-tuple-pat.rs:5:13
+ --> $DIR/recover-tuple-pat.rs:7:13
|
LL | (1, .=., 4) => { let _: usize = ""; }
| ^ expected pattern
-error: expected pattern, found `.`
- --> $DIR/recover-tuple-pat.rs:8:10
- |
-LL | (.=., 4) => {}
- | ^ expected pattern
-
-error[E0308]: mismatched types
- --> $DIR/recover-tuple-pat.rs:5:41
- |
-LL | (1, .=., 4) => { let _: usize = ""; }
- | ^^ expected usize, found reference
- |
- = note: expected type `usize`
- found type `&'static str`
-
-error: aborting due to 3 previous errors
+error: aborting due to previous error
-For more information about this error, try `rustc --explain E0308`.