fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0004]: non-exhaustive patterns: `_` not covered 2 --> $DIR/doc-hidden-non-exhaustive.rs:15:11 3 | 4LL | match HiddenEnum::A { 5 | ^^^^^^^^^^^^^ pattern `_` not covered 6 | 7note: `HiddenEnum` defined here 8 --> $DIR/auxiliary/hidden.rs:1:1 9 | 10LL | pub enum HiddenEnum { 11 | ^^^^^^^^^^^^^^^^^^^ 12 = note: the matched value is of type `HiddenEnum` 13help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown 14 | 15LL ~ HiddenEnum::B => {}, 16LL + _ => todo!() 17 | 18 19error[E0004]: non-exhaustive patterns: `HiddenEnum::B` not covered 20 --> $DIR/doc-hidden-non-exhaustive.rs:21:11 21 | 22LL | match HiddenEnum::A { 23 | ^^^^^^^^^^^^^ pattern `HiddenEnum::B` not covered 24 | 25note: `HiddenEnum` defined here 26 --> $DIR/auxiliary/hidden.rs:3:5 27 | 28LL | pub enum HiddenEnum { 29 | ------------------- 30LL | A, 31LL | B, 32 | ^ not covered 33 = note: the matched value is of type `HiddenEnum` 34help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown 35 | 36LL ~ HiddenEnum::C => {}, 37LL + HiddenEnum::B => todo!() 38 | 39 40error[E0004]: non-exhaustive patterns: `HiddenEnum::B` and `_` not covered 41 --> $DIR/doc-hidden-non-exhaustive.rs:27:11 42 | 43LL | match HiddenEnum::A { 44 | ^^^^^^^^^^^^^ patterns `HiddenEnum::B` and `_` not covered 45 | 46note: `HiddenEnum` defined here 47 --> $DIR/auxiliary/hidden.rs:3:5 48 | 49LL | pub enum HiddenEnum { 50 | ------------------- 51LL | A, 52LL | B, 53 | ^ not covered 54 = note: the matched value is of type `HiddenEnum` 55help: 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 56 | 57LL ~ HiddenEnum::A => {}, 58LL + HiddenEnum::B | _ => todo!() 59 | 60 61error[E0004]: non-exhaustive patterns: `Some(HiddenEnum::B)` and `Some(_)` not covered 62 --> $DIR/doc-hidden-non-exhaustive.rs:32:11 63 | 64LL | match None { 65 | ^^^^ patterns `Some(HiddenEnum::B)` and `Some(_)` not covered 66 | 67note: `Option<HiddenEnum>` defined here 68 --> $SRC_DIR/core/src/option.rs:LL:COL 69 ::: $SRC_DIR/core/src/option.rs:LL:COL 70 | 71 = note: not covered 72 = note: the matched value is of type `Option<HiddenEnum>` 73help: 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 74 | 75LL ~ Some(HiddenEnum::A) => {}, 76LL + Some(HiddenEnum::B) | Some(_) => todo!() 77 | 78 79error[E0004]: non-exhaustive patterns: `InCrate::C` not covered 80 --> $DIR/doc-hidden-non-exhaustive.rs:38:11 81 | 82LL | match InCrate::A { 83 | ^^^^^^^^^^ pattern `InCrate::C` not covered 84 | 85note: `InCrate` defined here 86 --> $DIR/doc-hidden-non-exhaustive.rs:11:5 87 | 88LL | enum InCrate { 89 | ------- 90... 91LL | C, 92 | ^ not covered 93 = note: the matched value is of type `InCrate` 94help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown 95 | 96LL ~ InCrate::B => {}, 97LL + InCrate::C => todo!() 98 | 99 100error: aborting due to 5 previous errors 101 102For more information about this error, try `rustc --explain E0004`.