]> git.lizzy.rs Git - rust.git/blob - tests/ui/pattern/suggest-adding-appropriate-missing-pattern-excluding-comments.stderr
Rollup merge of #106749 - glandium:dwarf, r=Mark-Simulacrum
[rust.git] / tests / 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   ::: $SRC_DIR/core/src/option.rs:LL:COL
10    |
11    = note: not covered
12    = note: the matched value is of type `Option<i32>`
13 help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
14    |
15 LL ~         Some(_) => {}
16 LL +         None => todo!()
17    |
18
19 error: aborting due to previous error
20
21 For more information about this error, try `rustc --explain E0004`.