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
+
1
3
fn main ( ) {
2
4
let x = ( 1 , 2 , 3 , 4 ) ;
3
5
match x {
4
6
( 1 , .., 4 ) => { }
5
7
( 1 , . =. , 4 ) => { let _: usize = "" ; }
6
8
//~^ ERROR expected pattern, found `.`
7
- //~| ERROR mismatched types
8
9
( . =. , 4 ) => { }
9
- //~^ ERROR expected pattern, found `.`
10
10
( 1 , 2 , 3 , 4 ) => { }
11
11
}
12
12
}
Original file line number Diff line number Diff line change 1
1
error: expected pattern, found `.`
2
- --> $DIR/recover-tuple-pat.rs:5 :13
2
+ --> $DIR/recover-tuple-pat.rs:7 :13
3
3
|
4
4
LL | (1, .=., 4) => { let _: usize = ""; }
5
5
| ^ expected pattern
6
6
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
23
8
24
- For more information about this error, try `rustc --explain E0308`.
You can’t perform that action at this time.
0 commit comments