File tree Expand file tree Collapse file tree 2 files changed +4
-20
lines changed Expand file tree Collapse file tree 2 files changed +4
-20
lines changed Original file line number Diff line number Diff line change 1+ // NOTE: This doesn't recover anymore.
2+
13fn main ( ) {
24 let x = ( 1 , 2 , 3 , 4 ) ;
35 match x {
46 ( 1 , .., 4 ) => { }
57 ( 1 , . =. , 4 ) => { let _: usize = "" ; }
68 //~^ ERROR expected pattern, found `.`
7- //~| ERROR mismatched types
89 ( . =. , 4 ) => { }
9- //~^ ERROR expected pattern, found `.`
1010 ( 1 , 2 , 3 , 4 ) => { }
1111 }
1212}
Original file line number Diff line number Diff line change 11error: expected pattern, found `.`
2- --> $DIR/recover-tuple-pat.rs:5 :13
2+ --> $DIR/recover-tuple-pat.rs:7 :13
33 |
44LL | (1, .=., 4) => { let _: usize = ""; }
55 | ^ expected pattern
66
7- error: expected pattern, found `.`
8- --> $DIR/recover-tuple-pat.rs:8:10
9- |
10- LL | (.=., 4) => {}
11- | ^ expected pattern
12-
13- error[E0308]: mismatched types
14- --> $DIR/recover-tuple-pat.rs:5:41
15- |
16- LL | (1, .=., 4) => { let _: usize = ""; }
17- | ^^ expected usize, found reference
18- |
19- = note: expected type `usize`
20- found type `&'static str`
21-
22- error: aborting due to 3 previous errors
7+ error: aborting due to previous error
238
24- For more information about this error, try `rustc --explain E0308`.
You can’t perform that action at this time.
0 commit comments