rust/tests/ui/error-codes/E0004-2.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
816 B
Plaintext
Raw Normal View History

2019-12-04 10:39:33 -06:00
error[E0004]: non-exhaustive patterns: `None` and `Some(_)` not covered
--> $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
|
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
= note: the matched value is of type `Option<i32>`
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
|
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`.