]> git.proxmox.com Git - rustc.git/blame - src/doc/book/listings/ch06-enums-and-pattern-matching/no-listing-10-non-exhaustive-match/output.txt
New upstream version 1.63.0+dfsg1
[rustc.git] / src / doc / book / listings / ch06-enums-and-pattern-matching / no-listing-10-non-exhaustive-match / output.txt
CommitLineData
74b04a01
XL
1$ cargo run
2 Compiling enums v0.1.0 (file:///projects/enums)
3error[E0004]: non-exhaustive patterns: `None` not covered
fc512014
XL
4 --> src/main.rs:3:15
5 |
63 | match x {
7 | ^ pattern `None` not covered
8 |
923072b8 9note: `Option<i32>` defined here
fc512014 10 = note: the matched value is of type `Option<i32>`
923072b8
FG
11help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
12 |
134 ~ Some(i) => Some(i + 1),
145 ~ None => todo!(),
15 |
74b04a01 16
74b04a01 17For more information about this error, try `rustc --explain E0004`.
c295e0f8 18error: could not compile `enums` due to previous error