|
1 | 1 | error: a never pattern is always unreachable
|
2 |
| - --> $DIR/ICE-133063-never-arm-no-otherwise-block.rs:13:46 |
| 2 | + --> $DIR/ICE-133063-never-arm-no-otherwise-block.rs:10:31 |
3 | 3 | |
|
4 |
| -LL | !) if let _ = split_last(&()) => {} |
5 |
| - | ^^ |
6 |
| - | | |
7 |
| - | this will never be executed |
8 |
| - | help: remove this expression |
| 4 | +LL | (!|!) if false => {} |
| 5 | + | ^^ |
| 6 | + | | |
| 7 | + | this will never be executed |
| 8 | + | help: remove this expression |
9 | 9 |
|
10 |
| -error: mismatched types |
11 |
| - --> $DIR/ICE-133063-never-arm-no-otherwise-block.rs:12:14 |
12 |
| - | |
13 |
| -LL | (!| |
14 |
| - | ^ a never pattern must be used on an uninhabited type |
15 |
| - | |
16 |
| - = note: the matched value is of type `()` |
17 |
| - |
18 |
| -error: mismatched types |
19 |
| - --> $DIR/ICE-133063-never-arm-no-otherwise-block.rs:13:13 |
20 |
| - | |
21 |
| -LL | !) if let _ = split_last(&()) => {} |
22 |
| - | ^ a never pattern must be used on an uninhabited type |
23 |
| - | |
24 |
| - = note: the matched value is of type `()` |
25 |
| - |
26 |
| -warning: irrefutable `if let` guard pattern |
27 |
| - --> $DIR/ICE-133063-never-arm-no-otherwise-block.rs:13:19 |
28 |
| - | |
29 |
| -LL | !) if let _ = split_last(&()) => {} |
30 |
| - | ^^^^^^^^^^^^^^^^^^^^^^^ |
31 |
| - | |
32 |
| - = note: this pattern will always match, so the guard is useless |
33 |
| - = help: consider removing the guard and adding a `let` inside the match arm |
34 |
| - = note: `#[warn(irrefutable_let_patterns)]` on by default |
35 |
| - |
36 |
| -error: aborting due to 3 previous errors; 1 warning emitted |
| 10 | +error: aborting due to 1 previous error |
37 | 11 |
|
0 commit comments