]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/suggest-adding-appropriate-missing-pattern-excluding-comments.stderr
Add tests for #41731
[rust.git] / src / test / ui / pattern / suggest-adding-appropriate-missing-pattern-excluding-comments.stderr
1 error[E0004]: non-exhaustive patterns: `None` not covered
2   --> $DIR/suggest-adding-appropriate-missing-pattern-excluding-comments.rs:4:11
3    |
4 LL |     match Some(1) {
5    |           ^^^^^^^ pattern `None` not covered
6    |
7 note: `Option<i32>` defined here
8   --> $SRC_DIR/core/src/option.rs:LL:COL
9    |
10 LL | pub enum Option<T> {
11    | ------------------
12 ...
13 LL |     None,
14    |     ^^^^ not covered
15    = note: the matched value is of type `Option<i32>`
16 help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
17    |
18 LL ~         Some(_) => {}
19 LL +         None => todo!()
20    |
21
22 error: aborting due to previous error
23
24 For more information about this error, try `rustc --explain E0004`.