2019-12-04 10:39:33 -06:00
error[E0004]: non-exhaustive patterns: `None` and `Some(_)` not covered
2020-03-31 20:10:13 -05:00
--> $DIR/E0004-2.rs:4:11
2018-02-07 21:35:35 -06:00
|
2019-03-09 06:03:44 -06:00
LL | match x { }
2019-12-04 10:39:33 -06:00
| ^ patterns `None` and `Some(_)` not covered
2021-06-10 06:52:00 -05:00
|
2021-12-15 23:06:44 -06:00
note: `Option<i32>` defined here
--> $SRC_DIR/core/src/option.rs:LL:COL
2022-12-12 09:25:04 -06:00
::: $SRC_DIR/core/src/option.rs:LL:COL
|
= note: not covered
::: $SRC_DIR/core/src/option.rs:LL:COL
|
= note: not covered
2020-09-02 02:40:56 -05:00
= note: the matched value is of type `Option<i32>`
2021-12-16 16:46:13 -06:00
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern, a match arm with multiple or-patterns as shown, or multiple match arms
2021-12-15 20:05:58 -06:00
|
LL ~ match x {
LL + None | Some(_) => todo!(),
LL ~ }
|
2018-02-07 21:35:35 -06:00
error: aborting due to previous error
2018-03-03 08:59:40 -06:00
For more information about this error, try `rustc --explain E0004`.