2023-10-12 22:20:06 +00:00
error[E0004]: non-exhaustive patterns: `usize::MAX..` not covered
2023-10-12 20:23:38 +00:00
--> $DIR/pointer-sized-int.rs:14:11
2020-11-20 19:03:56 +00:00
|
LL | match 0usize {
2023-10-12 22:20:06 +00:00
| ^^^^^^ pattern `usize::MAX..` not covered
2020-11-20 19:03:56 +00:00
|
= note: the matched value is of type `usize`
2023-10-12 22:20:06 +00:00
= note: `usize` does not have a fixed maximum value, so half-open ranges are necessary to match exhaustively
2020-11-20 19:03:56 +00:00
= help: add `#![feature(precise_pointer_size_matching)]` to the crate attributes to enable precise `usize` matching
2021-12-16 22:46:13 +00: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-16 02:14:17 +00:00
|
2023-11-04 03:25:35 +00:00
LL ~ 0..=usize::MAX => {},
2023-10-12 22:20:06 +00:00
LL + usize::MAX.. => todo!()
2021-12-16 02:14:17 +00:00
|
2020-11-20 19:03:56 +00:00
2023-10-12 22:20:06 +00:00
error[E0004]: non-exhaustive patterns: `..isize::MIN` and `isize::MAX..` not covered
2023-10-12 20:23:38 +00:00
--> $DIR/pointer-sized-int.rs:19:11
2020-11-20 19:03:56 +00:00
|
LL | match 0isize {
2023-10-12 22:20:06 +00:00
| ^^^^^^ patterns `..isize::MIN` and `isize::MAX..` not covered
2020-11-20 19:03:56 +00:00
|
= note: the matched value is of type `isize`
2023-10-12 22:20:06 +00:00
= note: `isize` does not have fixed minimum and maximum values, so half-open ranges are necessary to match exhaustively
2020-11-20 19:03:56 +00:00
= help: add `#![feature(precise_pointer_size_matching)]` to the crate attributes to enable precise `isize` matching
2023-10-12 22:20:06 +00:00
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
2021-12-16 02:14:17 +00:00
|
2023-11-04 03:25:35 +00:00
LL ~ isize::MIN..=isize::MAX => {},
2023-10-12 22:20:06 +00:00
LL + ..isize::MIN | isize::MAX.. => todo!()
2021-12-16 02:14:17 +00:00
|
2020-11-20 19:03:56 +00:00
2023-10-12 22:20:06 +00:00
error[E0004]: non-exhaustive patterns: `usize::MAX..` not covered
2023-11-04 03:25:35 +00:00
--> $DIR/pointer-sized-int.rs:24:8
2020-11-20 19:03:56 +00:00
|
LL | m!(0usize, 0..=usize::MAX);
2023-10-12 22:20:06 +00:00
| ^^^^^^ pattern `usize::MAX..` not covered
2020-11-20 19:03:56 +00:00
|
= note: the matched value is of type `usize`
2023-10-12 22:20:06 +00:00
= note: `usize` does not have a fixed maximum value, so half-open ranges are necessary to match exhaustively
2020-11-20 19:03:56 +00:00
= help: add `#![feature(precise_pointer_size_matching)]` to the crate attributes to enable precise `usize` matching
2021-12-16 22:46:13 +00: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-16 02:14:17 +00:00
|
2023-10-12 22:20:06 +00:00
LL | match $s { $($t)+ => {}, usize::MAX.. => todo!() }
| +++++++++++++++++++++++++
2020-11-20 19:03:56 +00:00
2023-10-12 22:20:06 +00:00
error[E0004]: non-exhaustive patterns: `usize::MAX..` not covered
2023-11-04 03:25:35 +00:00
--> $DIR/pointer-sized-int.rs:26:8
2020-11-20 19:03:56 +00:00
|
LL | m!(0usize, 0..5 | 5..=usize::MAX);
2023-10-12 22:20:06 +00:00
| ^^^^^^ pattern `usize::MAX..` not covered
2020-11-20 19:03:56 +00:00
|
= note: the matched value is of type `usize`
2023-10-12 22:20:06 +00:00
= note: `usize` does not have a fixed maximum value, so half-open ranges are necessary to match exhaustively
2020-11-20 19:03:56 +00:00
= help: add `#![feature(precise_pointer_size_matching)]` to the crate attributes to enable precise `usize` matching
2021-12-16 22:46:13 +00: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-16 02:14:17 +00:00
|
2023-10-12 22:20:06 +00:00
LL | match $s { $($t)+ => {}, usize::MAX.. => todo!() }
| +++++++++++++++++++++++++
2020-11-20 19:03:56 +00:00
2023-10-12 22:20:06 +00:00
error[E0004]: non-exhaustive patterns: `usize::MAX..` not covered
2023-11-04 03:25:35 +00:00
--> $DIR/pointer-sized-int.rs:28:8
2020-11-20 19:03:56 +00:00
|
LL | m!(0usize, 0..usize::MAX | usize::MAX);
2023-10-12 22:20:06 +00:00
| ^^^^^^ pattern `usize::MAX..` not covered
2020-11-20 19:03:56 +00:00
|
= note: the matched value is of type `usize`
2023-10-12 22:20:06 +00:00
= note: `usize` does not have a fixed maximum value, so half-open ranges are necessary to match exhaustively
2020-11-20 19:03:56 +00:00
= help: add `#![feature(precise_pointer_size_matching)]` to the crate attributes to enable precise `usize` matching
2021-12-16 22:46:13 +00: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-16 02:14:17 +00:00
|
2023-10-12 22:20:06 +00:00
LL | match $s { $($t)+ => {}, usize::MAX.. => todo!() }
| +++++++++++++++++++++++++
2020-11-20 19:03:56 +00:00
2023-10-12 22:20:06 +00:00
error[E0004]: non-exhaustive patterns: `(usize::MAX.., _)` not covered
2023-11-04 03:25:35 +00:00
--> $DIR/pointer-sized-int.rs:30:8
2020-11-20 19:03:56 +00:00
|
LL | m!((0usize, true), (0..5, true) | (5..=usize::MAX, true) | (0..=usize::MAX, false));
2023-10-12 22:20:06 +00:00
| ^^^^^^^^^^^^^^ pattern `(usize::MAX.., _)` not covered
2020-11-20 19:03:56 +00:00
|
= note: the matched value is of type `(usize, bool)`
2023-10-12 22:20:06 +00:00
= note: `usize` does not have a fixed maximum value, so half-open ranges are necessary to match exhaustively
2023-08-03 03:39:03 +00:00
= help: add `#![feature(precise_pointer_size_matching)]` to the crate attributes to enable precise `usize` matching
2021-12-16 22:46:13 +00: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-16 02:14:17 +00:00
|
2023-10-12 22:20:06 +00:00
LL | match $s { $($t)+ => {}, (usize::MAX.., _) => todo!() }
| ++++++++++++++++++++++++++++++
2023-10-12 20:23:38 +00:00
2023-10-12 22:20:06 +00:00
error[E0004]: non-exhaustive patterns: `..isize::MIN` and `isize::MAX..` not covered
2023-11-04 03:25:35 +00:00
--> $DIR/pointer-sized-int.rs:39:8
2020-11-20 19:03:56 +00:00
|
LL | m!(0isize, isize::MIN..=isize::MAX);
2023-10-12 22:20:06 +00:00
| ^^^^^^ patterns `..isize::MIN` and `isize::MAX..` not covered
2020-11-20 19:03:56 +00:00
|
= note: the matched value is of type `isize`
2023-10-12 22:20:06 +00:00
= note: `isize` does not have fixed minimum and maximum values, so half-open ranges are necessary to match exhaustively
2020-11-20 19:03:56 +00:00
= help: add `#![feature(precise_pointer_size_matching)]` to the crate attributes to enable precise `isize` matching
2023-10-12 22:20:06 +00:00
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
2021-12-16 02:14:17 +00:00
|
2023-10-12 22:20:06 +00:00
LL | match $s { $($t)+ => {}, ..isize::MIN | isize::MAX.. => todo!() }
| ++++++++++++++++++++++++++++++++++++++++
2020-11-20 19:03:56 +00:00
2023-10-12 22:20:06 +00:00
error[E0004]: non-exhaustive patterns: `..isize::MIN` and `isize::MAX..` not covered
2023-11-04 03:25:35 +00:00
--> $DIR/pointer-sized-int.rs:41:8
2020-11-20 19:03:56 +00:00
|
LL | m!(0isize, isize::MIN..5 | 5..=isize::MAX);
2023-10-12 22:20:06 +00:00
| ^^^^^^ patterns `..isize::MIN` and `isize::MAX..` not covered
2020-11-20 19:03:56 +00:00
|
= note: the matched value is of type `isize`
2023-10-12 22:20:06 +00:00
= note: `isize` does not have fixed minimum and maximum values, so half-open ranges are necessary to match exhaustively
2020-11-20 19:03:56 +00:00
= help: add `#![feature(precise_pointer_size_matching)]` to the crate attributes to enable precise `isize` matching
2023-10-12 22:20:06 +00:00
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
2021-12-16 02:14:17 +00:00
|
2023-10-12 22:20:06 +00:00
LL | match $s { $($t)+ => {}, ..isize::MIN | isize::MAX.. => todo!() }
| ++++++++++++++++++++++++++++++++++++++++
2020-11-20 19:03:56 +00:00
2023-10-12 22:20:06 +00:00
error[E0004]: non-exhaustive patterns: `..isize::MIN` and `isize::MAX..` not covered
2023-11-04 03:25:35 +00:00
--> $DIR/pointer-sized-int.rs:43:8
2020-11-20 19:03:56 +00:00
|
2023-11-04 03:25:35 +00:00
LL | m!(0isize, isize::MIN..=-1 | 0 | 1..=isize::MAX);
2023-10-12 22:20:06 +00:00
| ^^^^^^ patterns `..isize::MIN` and `isize::MAX..` not covered
2020-11-20 19:03:56 +00:00
|
= note: the matched value is of type `isize`
2023-10-12 22:20:06 +00:00
= note: `isize` does not have fixed minimum and maximum values, so half-open ranges are necessary to match exhaustively
2020-11-20 19:03:56 +00:00
= help: add `#![feature(precise_pointer_size_matching)]` to the crate attributes to enable precise `isize` matching
2023-10-12 22:20:06 +00:00
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
2021-12-16 02:14:17 +00:00
|
2023-10-12 22:20:06 +00:00
LL | match $s { $($t)+ => {}, ..isize::MIN | isize::MAX.. => todo!() }
| ++++++++++++++++++++++++++++++++++++++++
2020-11-20 19:03:56 +00:00
2023-11-04 03:25:35 +00:00
error[E0004]: non-exhaustive patterns: `..isize::MIN` and `isize::MAX..` not covered
--> $DIR/pointer-sized-int.rs:45:8
2020-11-20 19:03:56 +00:00
|
2023-11-04 03:25:35 +00:00
LL | m!(0isize, isize::MIN..isize::MAX | isize::MAX);
| ^^^^^^ patterns `..isize::MIN` and `isize::MAX..` not covered
2020-11-20 19:03:56 +00:00
|
2023-11-04 03:25:35 +00:00
= note: the matched value is of type `isize`
2023-10-12 22:20:06 +00:00
= note: `isize` does not have fixed minimum and maximum values, so half-open ranges are necessary to match exhaustively
2023-08-03 03:39:03 +00:00
= help: add `#![feature(precise_pointer_size_matching)]` to the crate attributes to enable precise `isize` matching
2023-10-12 22:20:06 +00:00
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
2021-12-16 02:14:17 +00:00
|
2023-11-04 03:25:35 +00:00
LL | match $s { $($t)+ => {}, ..isize::MIN | isize::MAX.. => todo!() }
| ++++++++++++++++++++++++++++++++++++++++
2020-11-20 19:03:56 +00:00
2023-11-04 03:25:35 +00:00
error[E0004]: non-exhaustive patterns: `(..isize::MIN, _)` and `(isize::MAX.., _)` not covered
--> $DIR/pointer-sized-int.rs:48:9
2020-11-20 19:03:56 +00:00
|
2023-11-04 03:25:35 +00:00
LL | (0isize, true),
| ^^^^^^^^^^^^^^ patterns `(..isize::MIN, _)` and `(isize::MAX.., _)` not covered
2020-11-20 19:03:56 +00:00
|
2023-11-04 03:25:35 +00:00
= note: the matched value is of type `(isize, bool)`
2023-10-12 22:20:06 +00:00
= note: `isize` does not have fixed minimum and maximum values, so half-open ranges are necessary to match exhaustively
2020-11-20 19:03:56 +00:00
= help: add `#![feature(precise_pointer_size_matching)]` to the crate attributes to enable precise `isize` matching
2023-10-12 22:20:06 +00:00
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
2021-12-16 02:28:09 +00:00
|
2023-11-04 03:25:35 +00:00
LL | match $s { $($t)+ => {}, (..isize::MIN, _) | (isize::MAX.., _) => todo!() }
| ++++++++++++++++++++++++++++++++++++++++++++++++++
2020-11-20 19:03:56 +00:00
error[E0004]: non-exhaustive patterns: type `usize` is non-empty
2023-11-04 03:25:35 +00:00
--> $DIR/pointer-sized-int.rs:59:11
2020-11-20 19:03:56 +00:00
|
LL | match 7usize {}
| ^^^^^^
|
= note: the matched value is of type `usize`
2021-12-16 22:46:13 +00:00
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern as shown
2021-12-16 02:05:58 +00:00
|
LL ~ match 7usize {
LL + _ => todo!(),
LL + }
|
2020-11-20 19:03:56 +00:00
2023-10-12 22:20:06 +00:00
error: aborting due to 12 previous errors
2020-11-20 19:03:56 +00:00
For more information about this error, try `rustc --explain E0004`.