]>
Commit | Line | Data |
---|---|---|
f035d41b | 1 | error[E0004]: non-exhaustive patterns: `i32::MIN..=0_i32` and `2_i32..=i32::MAX` not covered |
0731742a | 2 | --> $DIR/match-non-exhaustive.rs:2:11 |
b7449926 | 3 | | |
532ac7d7 | 4 | LL | match 0 { 1 => () } |
f035d41b | 5 | | ^ patterns `i32::MIN..=0_i32` and `2_i32..=i32::MAX` not covered |
532ac7d7 | 6 | | |
ba9703b0 | 7 | = note: the matched value is of type `i32` |
5e7ed085 FG |
8 | help: 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 |
9 | | | |
10 | LL | match 0 { 1 => (), i32::MIN..=0_i32 | 2_i32..=i32::MAX => todo!() } | |
11 | | ++++++++++++++++++++++++++++++++++++++++++++++++ | |
b7449926 | 12 | |
4b012472 | 13 | error[E0004]: non-exhaustive patterns: `i32::MIN..=-1_i32` and `1_i32..=i32::MAX` not covered |
0731742a | 14 | --> $DIR/match-non-exhaustive.rs:3:11 |
b7449926 | 15 | | |
532ac7d7 | 16 | LL | match 0 { 0 if false => () } |
4b012472 | 17 | | ^ patterns `i32::MIN..=-1_i32` and `1_i32..=i32::MAX` not covered |
532ac7d7 | 18 | | |
ba9703b0 | 19 | = note: the matched value is of type `i32` |
fe692bf9 | 20 | = note: match arms with guards don't count towards exhaustivity |
4b012472 | 21 | help: 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 |
5e7ed085 | 22 | | |
4b012472 FG |
23 | LL | match 0 { 0 if false => (), i32::MIN..=-1_i32 | 1_i32..=i32::MAX => todo!() } |
24 | | +++++++++++++++++++++++++++++++++++++++++++++++++ | |
b7449926 XL |
25 | |
26 | error: aborting due to 2 previous errors | |
27 | ||
28 | For more information about this error, try `rustc --explain E0004`. |