2023-11-26 21:08:09 -06:00
|
|
|
error: a never pattern is always unreachable
|
2024-02-07 17:09:31 -06:00
|
|
|
--> $DIR/check.rs:15:20
|
2023-11-26 21:08:09 -06:00
|
|
|
|
|
|
|
|
LL | Some(!) => {}
|
|
|
|
| ^^
|
|
|
|
| |
|
|
|
|
| this will never be executed
|
|
|
|
| help: remove this expression
|
|
|
|
|
2023-11-26 20:47:49 -06:00
|
|
|
error: a guard on a never pattern will never be run
|
2024-02-07 17:09:31 -06:00
|
|
|
--> $DIR/check.rs:20:20
|
2023-11-26 18:08:39 -06:00
|
|
|
|
|
2023-11-26 20:47:49 -06:00
|
|
|
LL | Some(!) if true,
|
|
|
|
| ^^^^ help: remove this guard
|
2023-11-26 18:08:39 -06:00
|
|
|
|
2023-11-26 21:08:09 -06:00
|
|
|
error: a never pattern is always unreachable
|
2024-02-07 17:09:31 -06:00
|
|
|
--> $DIR/check.rs:25:28
|
2023-11-26 21:08:09 -06:00
|
|
|
|
|
|
|
|
LL | Some(!) if true => {}
|
|
|
|
| ^^
|
|
|
|
| |
|
|
|
|
| this will never be executed
|
|
|
|
| help: remove this expression
|
|
|
|
|
|
|
|
error: a never pattern is always unreachable
|
2024-02-07 17:09:31 -06:00
|
|
|
--> $DIR/check.rs:30:27
|
2023-11-26 21:08:09 -06:00
|
|
|
|
|
2024-02-01 16:45:00 -06:00
|
|
|
LL | Some(never!()) => {}
|
2023-11-26 21:08:09 -06:00
|
|
|
| ^^
|
|
|
|
| |
|
|
|
|
| this will never be executed
|
|
|
|
| help: remove this expression
|
|
|
|
|
2024-07-27 04:08:16 -05:00
|
|
|
error[E0004]: non-exhaustive patterns: `&Some(!)` not covered
|
2024-02-07 17:09:31 -06:00
|
|
|
--> $DIR/check.rs:19:11
|
2024-02-01 16:45:00 -06:00
|
|
|
|
|
2024-07-27 04:08:16 -05:00
|
|
|
LL | match &None::<Void> {
|
|
|
|
| ^^^^^^^^^^^^^ pattern `&Some(!)` not covered
|
2024-02-01 16:45:00 -06:00
|
|
|
|
|
|
|
|
note: `Option<Void>` defined here
|
|
|
|
--> $SRC_DIR/core/src/option.rs:LL:COL
|
|
|
|
::: $SRC_DIR/core/src/option.rs:LL:COL
|
|
|
|
|
|
|
|
|
= note: not covered
|
2024-07-27 04:08:16 -05:00
|
|
|
= note: the matched value is of type `&Option<Void>`
|
|
|
|
= note: `Void` is uninhabited but is not being matched by value, so a wildcard `_` is required
|
2024-02-01 16:45:00 -06:00
|
|
|
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
|
|
|
|
|
|
|
|
|
LL ~ None => {},
|
2024-07-27 04:08:16 -05:00
|
|
|
LL + &Some(!)
|
2024-02-01 16:45:00 -06:00
|
|
|
|
|
|
|
|
|
2024-07-27 04:08:16 -05:00
|
|
|
error[E0004]: non-exhaustive patterns: `&Some(!)` not covered
|
2024-02-07 17:09:31 -06:00
|
|
|
--> $DIR/check.rs:24:11
|
2024-02-01 16:45:00 -06:00
|
|
|
|
|
2024-07-27 04:08:16 -05:00
|
|
|
LL | match &None::<Void> {
|
|
|
|
| ^^^^^^^^^^^^^ pattern `&Some(!)` not covered
|
2024-02-01 16:45:00 -06:00
|
|
|
|
|
|
|
|
note: `Option<Void>` defined here
|
|
|
|
--> $SRC_DIR/core/src/option.rs:LL:COL
|
|
|
|
::: $SRC_DIR/core/src/option.rs:LL:COL
|
|
|
|
|
|
|
|
|
= note: not covered
|
2024-07-27 04:08:16 -05:00
|
|
|
= note: the matched value is of type `&Option<Void>`
|
|
|
|
= note: `Void` is uninhabited but is not being matched by value, so a wildcard `_` is required
|
2024-02-01 16:45:00 -06:00
|
|
|
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
|
|
|
|
|
|
|
|
|
LL ~ None => {},
|
2024-07-27 04:08:16 -05:00
|
|
|
LL + &Some(!)
|
2024-02-01 16:45:00 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
2023-11-26 18:08:39 -06:00
|
|
|
|
2024-02-01 16:45:00 -06:00
|
|
|
For more information about this error, try `rustc --explain E0004`.
|