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
818 B
Plaintext
Raw Normal View History

2019-12-04 16:39:33 +00:00
error[E0004]: non-exhaustive patterns: `None` and `Some(_)` not covered
--> $DIR/E0004-2.rs:4:11
2018-02-08 03:35:35 +00:00
|
2019-03-09 12:03:44 +00:00
LL | match x { }
2019-12-04 16:39:33 +00:00
| ^ patterns `None` and `Some(_)` not covered
|
note: `Option<i32>` defined here
--> $SRC_DIR/core/src/option.rs:LL:COL
2022-12-12 15:25:04 +00: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-08 03:35:35 +00:00
error: aborting due to 1 previous error
2018-02-08 03:35:35 +00:00
2018-03-03 14:59:40 +00:00
For more information about this error, try `rustc --explain E0004`.