2020-11-20 13:03:56 -06:00
|
|
|
error[E0004]: non-exhaustive patterns: `u8::MAX` not covered
|
2022-01-19 09:24:49 -06:00
|
|
|
--> $DIR/exhaustiveness.rs:47:8
|
2020-11-20 13:03:56 -06:00
|
|
|
|
|
|
|
|
LL | m!(0u8, 0..255);
|
|
|
|
| ^^^ pattern `u8::MAX` not covered
|
|
|
|
|
|
|
|
|
= note: the matched value is of type `u8`
|
2021-12-16 16:46:13 -06:00
|
|
|
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
|
2021-12-15 20:14:17 -06:00
|
|
|
|
|
2022-06-19 18:46:26 -05:00
|
|
|
LL | match $s { $($t)+ => {}, u8::MAX => todo!() }
|
|
|
|
| ++++++++++++++++++++
|
2020-11-20 13:03:56 -06:00
|
|
|
|
|
|
|
error[E0004]: non-exhaustive patterns: `u8::MAX` not covered
|
2022-01-19 09:24:49 -06:00
|
|
|
--> $DIR/exhaustiveness.rs:48:8
|
2020-11-20 13:03:56 -06:00
|
|
|
|
|
|
|
|
LL | m!(0u8, 0..=254);
|
|
|
|
| ^^^ pattern `u8::MAX` not covered
|
|
|
|
|
|
|
|
|
= note: the matched value is of type `u8`
|
2021-12-16 16:46:13 -06:00
|
|
|
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
|
2021-12-15 20:14:17 -06:00
|
|
|
|
|
2022-06-19 18:46:26 -05:00
|
|
|
LL | match $s { $($t)+ => {}, u8::MAX => todo!() }
|
|
|
|
| ++++++++++++++++++++
|
2020-11-20 13:03:56 -06:00
|
|
|
|
|
|
|
error[E0004]: non-exhaustive patterns: `0_u8` not covered
|
2022-01-19 09:24:49 -06:00
|
|
|
--> $DIR/exhaustiveness.rs:49:8
|
2020-11-20 13:03:56 -06:00
|
|
|
|
|
|
|
|
LL | m!(0u8, 1..=255);
|
|
|
|
| ^^^ pattern `0_u8` not covered
|
|
|
|
|
|
|
|
|
= note: the matched value is of type `u8`
|
2021-12-16 16:46:13 -06:00
|
|
|
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
|
2021-12-15 20:14:17 -06:00
|
|
|
|
|
2022-06-19 18:46:26 -05:00
|
|
|
LL | match $s { $($t)+ => {}, 0_u8 => todo!() }
|
|
|
|
| +++++++++++++++++
|
2020-11-20 13:03:56 -06:00
|
|
|
|
|
|
|
error[E0004]: non-exhaustive patterns: `42_u8` not covered
|
2022-01-19 09:24:49 -06:00
|
|
|
--> $DIR/exhaustiveness.rs:50:8
|
2020-11-20 13:03:56 -06:00
|
|
|
|
|
|
|
|
LL | m!(0u8, 0..42 | 43..=255);
|
|
|
|
| ^^^ pattern `42_u8` not covered
|
|
|
|
|
|
|
|
|
= note: the matched value is of type `u8`
|
2021-12-16 16:46:13 -06:00
|
|
|
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
|
2021-12-15 20:14:17 -06:00
|
|
|
|
|
2022-06-19 18:46:26 -05:00
|
|
|
LL | match $s { $($t)+ => {}, 42_u8 => todo!() }
|
|
|
|
| ++++++++++++++++++
|
2020-11-20 13:03:56 -06:00
|
|
|
|
|
|
|
error[E0004]: non-exhaustive patterns: `i8::MAX` not covered
|
2022-01-19 09:24:49 -06:00
|
|
|
--> $DIR/exhaustiveness.rs:51:8
|
2020-11-20 13:03:56 -06:00
|
|
|
|
|
|
|
|
LL | m!(0i8, -128..127);
|
|
|
|
| ^^^ pattern `i8::MAX` not covered
|
|
|
|
|
|
|
|
|
= note: the matched value is of type `i8`
|
2021-12-16 16:46:13 -06:00
|
|
|
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
|
2021-12-15 20:14:17 -06:00
|
|
|
|
|
2022-06-19 18:46:26 -05:00
|
|
|
LL | match $s { $($t)+ => {}, i8::MAX => todo!() }
|
|
|
|
| ++++++++++++++++++++
|
2020-11-20 13:03:56 -06:00
|
|
|
|
|
|
|
error[E0004]: non-exhaustive patterns: `i8::MAX` not covered
|
2022-01-19 09:24:49 -06:00
|
|
|
--> $DIR/exhaustiveness.rs:52:8
|
2020-11-20 13:03:56 -06:00
|
|
|
|
|
|
|
|
LL | m!(0i8, -128..=126);
|
|
|
|
| ^^^ pattern `i8::MAX` not covered
|
|
|
|
|
|
|
|
|
= note: the matched value is of type `i8`
|
2021-12-16 16:46:13 -06:00
|
|
|
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
|
2021-12-15 20:14:17 -06:00
|
|
|
|
|
2022-06-19 18:46:26 -05:00
|
|
|
LL | match $s { $($t)+ => {}, i8::MAX => todo!() }
|
|
|
|
| ++++++++++++++++++++
|
2020-11-20 13:03:56 -06:00
|
|
|
|
|
|
|
error[E0004]: non-exhaustive patterns: `i8::MIN` not covered
|
2022-01-19 09:24:49 -06:00
|
|
|
--> $DIR/exhaustiveness.rs:53:8
|
2020-11-20 13:03:56 -06:00
|
|
|
|
|
|
|
|
LL | m!(0i8, -127..=127);
|
|
|
|
| ^^^ pattern `i8::MIN` not covered
|
|
|
|
|
|
|
|
|
= note: the matched value is of type `i8`
|
2021-12-16 16:46:13 -06:00
|
|
|
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
|
2021-12-15 20:14:17 -06:00
|
|
|
|
|
2022-06-19 18:46:26 -05:00
|
|
|
LL | match $s { $($t)+ => {}, i8::MIN => todo!() }
|
|
|
|
| ++++++++++++++++++++
|
2020-11-20 13:03:56 -06:00
|
|
|
|
|
|
|
error[E0004]: non-exhaustive patterns: `0_i8` not covered
|
2022-01-19 09:24:49 -06:00
|
|
|
--> $DIR/exhaustiveness.rs:54:11
|
2020-11-20 13:03:56 -06:00
|
|
|
|
|
|
|
|
LL | match 0i8 {
|
|
|
|
| ^^^ pattern `0_i8` not covered
|
|
|
|
|
|
|
|
|
= note: the matched value is of type `i8`
|
2021-12-16 16:46:13 -06:00
|
|
|
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
|
2021-12-15 20:28:09 -06:00
|
|
|
|
|
2023-02-27 11:43:39 -06:00
|
|
|
LL ~ 1 ..= i8::MAX => {},
|
2021-12-15 20:28:09 -06:00
|
|
|
LL + 0_i8 => todo!()
|
|
|
|
|
|
2020-11-20 13:03:56 -06:00
|
|
|
|
|
|
|
error[E0004]: non-exhaustive patterns: `u128::MAX` not covered
|
2022-01-19 09:24:49 -06:00
|
|
|
--> $DIR/exhaustiveness.rs:59:8
|
2020-11-20 13:03:56 -06:00
|
|
|
|
|
|
|
|
LL | m!(0u128, 0..=ALMOST_MAX);
|
|
|
|
| ^^^^^ pattern `u128::MAX` not covered
|
|
|
|
|
|
|
|
|
= note: the matched value is of type `u128`
|
2021-12-16 16:46:13 -06:00
|
|
|
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
|
2021-12-15 20:14:17 -06:00
|
|
|
|
|
2022-06-19 18:46:26 -05:00
|
|
|
LL | match $s { $($t)+ => {}, u128::MAX => todo!() }
|
|
|
|
| ++++++++++++++++++++++
|
2020-11-20 13:03:56 -06:00
|
|
|
|
|
|
|
error[E0004]: non-exhaustive patterns: `5_u128..=u128::MAX` not covered
|
2022-01-19 09:24:49 -06:00
|
|
|
--> $DIR/exhaustiveness.rs:60:8
|
2020-11-20 13:03:56 -06:00
|
|
|
|
|
|
|
|
LL | m!(0u128, 0..=4);
|
|
|
|
| ^^^^^ pattern `5_u128..=u128::MAX` not covered
|
|
|
|
|
|
|
|
|
= note: the matched value is of type `u128`
|
2021-12-16 16:46:13 -06:00
|
|
|
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
|
2021-12-15 20:14:17 -06:00
|
|
|
|
|
2022-06-19 18:46:26 -05:00
|
|
|
LL | match $s { $($t)+ => {}, 5_u128..=u128::MAX => todo!() }
|
|
|
|
| +++++++++++++++++++++++++++++++
|
2020-11-20 13:03:56 -06:00
|
|
|
|
|
|
|
error[E0004]: non-exhaustive patterns: `0_u128` not covered
|
2022-01-19 09:24:49 -06:00
|
|
|
--> $DIR/exhaustiveness.rs:61:8
|
2020-11-20 13:03:56 -06:00
|
|
|
|
|
|
|
|
LL | m!(0u128, 1..=u128::MAX);
|
|
|
|
| ^^^^^ pattern `0_u128` not covered
|
|
|
|
|
|
|
|
|
= note: the matched value is of type `u128`
|
2021-12-16 16:46:13 -06:00
|
|
|
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
|
2021-12-15 20:14:17 -06:00
|
|
|
|
|
2022-06-19 18:46:26 -05:00
|
|
|
LL | match $s { $($t)+ => {}, 0_u128 => todo!() }
|
|
|
|
| +++++++++++++++++++
|
2020-11-20 13:03:56 -06:00
|
|
|
|
|
|
|
error[E0004]: non-exhaustive patterns: `(126_u8..=127_u8, false)` not covered
|
2022-01-19 09:24:49 -06:00
|
|
|
--> $DIR/exhaustiveness.rs:69:11
|
2020-11-20 13:03:56 -06:00
|
|
|
|
|
|
|
|
LL | match (0u8, true) {
|
|
|
|
| ^^^^^^^^^^^ pattern `(126_u8..=127_u8, false)` not covered
|
|
|
|
|
|
|
|
|
= note: the matched value is of type `(u8, bool)`
|
2021-12-16 16:46:13 -06:00
|
|
|
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
|
2021-12-15 20:28:09 -06:00
|
|
|
|
|
2023-02-27 11:43:39 -06:00
|
|
|
LL ~ (0 ..= 255, true) => {},
|
2021-12-15 20:28:09 -06:00
|
|
|
LL + (126_u8..=127_u8, false) => todo!()
|
|
|
|
|
|
2020-11-20 13:03:56 -06:00
|
|
|
|
|
|
|
error: aborting due to 12 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0004`.
|