]>
Commit | Line | Data |
---|---|---|
74b04a01 XL |
1 | $ cargo run |
2 | Compiling enums v0.1.0 (file:///projects/enums) | |
3 | error[E0004]: non-exhaustive patterns: `None` not covered | |
fc512014 XL |
4 | --> src/main.rs:3:15 |
5 | | | |
6 | 3 | match x { | |
7 | | ^ pattern `None` not covered | |
8 | | | |
923072b8 | 9 | note: `Option<i32>` defined here |
fc512014 | 10 | = note: the matched value is of type `Option<i32>` |
923072b8 FG |
11 | help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown |
12 | | | |
13 | 4 ~ Some(i) => Some(i + 1), | |
14 | 5 ~ None => todo!(), | |
15 | | | |
74b04a01 | 16 | |
74b04a01 | 17 | For more information about this error, try `rustc --explain E0004`. |
c295e0f8 | 18 | error: could not compile `enums` due to previous error |