2023-10-10 13:28:08 -05:00
error: literal out of range for `u8`
2024-04-27 19:35:32 -05:00
--> $DIR/validate-range-endpoints.rs:7:12
2023-10-10 13:28:08 -05:00
|
LL | 1..257 => {}
2023-10-10 21:54:21 -05:00
| ^^^ this value does not fit into the type `u8` whose range is `0..=255`
2023-10-10 13:28:08 -05:00
error: literal out of range for `u8`
2024-04-27 19:35:32 -05:00
--> $DIR/validate-range-endpoints.rs:9:13
2023-10-10 13:28:08 -05:00
|
LL | 1..=256 => {}
2023-10-10 21:54:21 -05:00
| ^^^ this value does not fit into the type `u8` whose range is `0..=255`
2023-10-10 13:28:08 -05:00
error[E0030]: lower range bound must be less than or equal to upper
2024-04-27 19:35:32 -05:00
--> $DIR/validate-range-endpoints.rs:18:9
2023-10-10 13:28:08 -05:00
|
LL | 1..=TOO_BIG => {}
2023-10-10 21:54:21 -05:00
| ^^^^^^^^^^^ lower bound larger than upper bound
2023-10-10 13:28:08 -05:00
error[E0030]: lower range bound must be less than or equal to upper
2024-04-27 19:35:32 -05:00
--> $DIR/validate-range-endpoints.rs:20:9
2023-10-10 13:28:08 -05:00
|
LL | 1..=const { 256 } => {}
2023-10-10 21:54:21 -05:00
| ^^^^^^^^^^^^^^^^^ lower bound larger than upper bound
2023-10-10 13:28:08 -05:00
error: literal out of range for `u64`
2024-04-27 19:35:32 -05:00
--> $DIR/validate-range-endpoints.rs:26:32
2023-10-10 13:28:08 -05:00
|
LL | 10000000000000000000..=99999999999999999999 => {}
2023-10-10 21:54:21 -05:00
| ^^^^^^^^^^^^^^^^^^^^ this value does not fit into the type `u64` whose range is `0..=18446744073709551615`
2023-10-10 13:28:08 -05:00
2023-10-10 21:54:21 -05:00
error: literal out of range for `i8`
2024-04-27 19:35:32 -05:00
--> $DIR/validate-range-endpoints.rs:32:12
2023-10-10 13:28:08 -05:00
|
LL | 0..129 => {}
2023-10-10 21:54:21 -05:00
| ^^^ this value does not fit into the type `i8` whose range is `-128..=127`
2023-10-10 13:28:08 -05:00
2023-10-10 21:54:21 -05:00
error: literal out of range for `i8`
2024-04-27 19:35:32 -05:00
--> $DIR/validate-range-endpoints.rs:34:13
2023-10-10 13:28:08 -05:00
|
LL | 0..=128 => {}
2023-10-10 21:54:21 -05:00
| ^^^ this value does not fit into the type `i8` whose range is `-128..=127`
2023-10-10 13:28:08 -05:00
2023-10-10 21:54:21 -05:00
error: literal out of range for `i8`
2024-04-27 19:35:32 -05:00
--> $DIR/validate-range-endpoints.rs:36:9
2023-10-10 13:28:08 -05:00
|
LL | -129..0 => {}
2023-10-10 21:54:21 -05:00
| ^^^^ this value does not fit into the type `i8` whose range is `-128..=127`
2023-10-10 13:28:08 -05:00
2023-10-10 21:54:21 -05:00
error: literal out of range for `i8`
2024-04-27 19:35:32 -05:00
--> $DIR/validate-range-endpoints.rs:38:9
2023-10-10 13:28:08 -05:00
|
LL | -10000..=-20 => {}
2023-10-10 21:54:21 -05:00
| ^^^^^^ this value does not fit into the type `i8` whose range is `-128..=127`
2023-10-10 13:28:08 -05:00
error[E0004]: non-exhaustive patterns: `i8::MIN..=-17_i8` and `1_i8..=i8::MAX` not covered
2024-04-27 19:35:32 -05:00
--> $DIR/validate-range-endpoints.rs:49:11
2023-10-10 13:28:08 -05:00
|
LL | match 0i8 {
| ^^^ patterns `i8::MIN..=-17_i8` and `1_i8..=i8::MAX` not covered
|
= note: the matched value is of type `i8`
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
|
LL ~ -10000..=0 => {},
LL + i8::MIN..=-17_i8 | 1_i8..=i8::MAX => todo!()
|
error[E0004]: non-exhaustive patterns: `i8::MIN..=-17_i8` not covered
2024-04-27 19:35:32 -05:00
--> $DIR/validate-range-endpoints.rs:53:11
2023-10-10 13:28:08 -05:00
|
LL | match 0i8 {
| ^^^ pattern `i8::MIN..=-17_i8` not covered
|
= note: the matched value is of type `i8`
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
|
LL ~ -10000.. => {},
LL + i8::MIN..=-17_i8 => todo!()
|
error: aborting due to 11 previous errors
2023-10-10 21:54:21 -05:00
Some errors have detailed explanations: E0004, E0030.
2023-10-10 13:28:08 -05:00
For more information about an error, try `rustc --explain E0004`.