@@ -11,10 +11,6 @@ help: you might want to use `if let` to ignore the variants that aren't matched
11
11
|
12
12
LL | const X: i32 = { if let 0 = 0 { todo!() } 0 };
13
13
| ++ ~~~~~~~~~~~
14
- help: alternatively, on nightly, you might want to use `#![feature(let_else)]` to handle the variants that aren't matched
15
- |
16
- LL | const X: i32 = { let 0 = 0 else { todo!() }; 0 };
17
- | ++++++++++++++++
18
14
19
15
error[E0005]: refutable pattern in local binding: `i32::MIN..=-1_i32` and `1_i32..=i32::MAX` not covered
20
16
--> $DIR/const-match-check.rs:8:23
@@ -29,10 +25,6 @@ help: you might want to use `if let` to ignore the variants that aren't matched
29
25
|
30
26
LL | static Y: i32 = { if let 0 = 0 { todo!() } 0 };
31
27
| ++ ~~~~~~~~~~~
32
- help: alternatively, on nightly, you might want to use `#![feature(let_else)]` to handle the variants that aren't matched
33
- |
34
- LL | static Y: i32 = { let 0 = 0 else { todo!() }; 0 };
35
- | ++++++++++++++++
36
28
37
29
error[E0005]: refutable pattern in local binding: `i32::MIN..=-1_i32` and `1_i32..=i32::MAX` not covered
38
30
--> $DIR/const-match-check.rs:13:26
@@ -47,10 +39,6 @@ help: you might want to use `if let` to ignore the variants that aren't matched
47
39
|
48
40
LL | const X: i32 = { if let 0 = 0 { todo!() } 0 };
49
41
| ++ ~~~~~~~~~~~
50
- help: alternatively, on nightly, you might want to use `#![feature(let_else)]` to handle the variants that aren't matched
51
- |
52
- LL | const X: i32 = { let 0 = 0 else { todo!() }; 0 };
53
- | ++++++++++++++++
54
42
55
43
error[E0005]: refutable pattern in local binding: `i32::MIN..=-1_i32` and `1_i32..=i32::MAX` not covered
56
44
--> $DIR/const-match-check.rs:19:26
@@ -65,10 +53,6 @@ help: you might want to use `if let` to ignore the variants that aren't matched
65
53
|
66
54
LL | const X: i32 = { if let 0 = 0 { todo!() } 0 };
67
55
| ++ ~~~~~~~~~~~
68
- help: alternatively, on nightly, you might want to use `#![feature(let_else)]` to handle the variants that aren't matched
69
- |
70
- LL | const X: i32 = { let 0 = 0 else { todo!() }; 0 };
71
- | ++++++++++++++++
72
56
73
57
error: aborting due to 4 previous errors
74
58
0 commit comments