]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/usefulness/integer-ranges/pointer-sized-int-deny.stderr
Rollup merge of #78853 - calebcartwright:fix-const-block-expr-span, r=spastorino
[rust.git] / src / test / ui / pattern / usefulness / integer-ranges / pointer-sized-int-deny.stderr
1 error[E0004]: non-exhaustive patterns: `_` not covered
2   --> $DIR/pointer-sized-int-deny.rs:10:11
3    |
4 LL |     match 0usize {
5    |           ^^^^^^ pattern `_` not covered
6    |
7    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
8    = note: the matched value is of type `usize`
9    = note: `usize` does not have a fixed maximum value, so a wildcard `_` is necessary to match exhaustively
10    = help: add `#![feature(precise_pointer_size_matching)]` to the crate attributes to enable precise `usize` matching
11
12 error[E0004]: non-exhaustive patterns: `_` not covered
13   --> $DIR/pointer-sized-int-deny.rs:15:11
14    |
15 LL |     match 0isize {
16    |           ^^^^^^ pattern `_` not covered
17    |
18    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
19    = note: the matched value is of type `isize`
20    = note: `isize` does not have a fixed maximum value, so a wildcard `_` is necessary to match exhaustively
21    = help: add `#![feature(precise_pointer_size_matching)]` to the crate attributes to enable precise `isize` matching
22
23 error[E0004]: non-exhaustive patterns: `_` not covered
24   --> $DIR/pointer-sized-int-deny.rs:20:8
25    |
26 LL |     m!(0usize, 0..=usize::MAX);
27    |        ^^^^^^ pattern `_` not covered
28    |
29    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
30    = note: the matched value is of type `usize`
31    = note: `usize` does not have a fixed maximum value, so a wildcard `_` is necessary to match exhaustively
32    = help: add `#![feature(precise_pointer_size_matching)]` to the crate attributes to enable precise `usize` matching
33
34 error[E0004]: non-exhaustive patterns: `_` not covered
35   --> $DIR/pointer-sized-int-deny.rs:22:8
36    |
37 LL |     m!(0usize, 0..5 | 5..=usize::MAX);
38    |        ^^^^^^ pattern `_` not covered
39    |
40    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
41    = note: the matched value is of type `usize`
42    = note: `usize` does not have a fixed maximum value, so a wildcard `_` is necessary to match exhaustively
43    = help: add `#![feature(precise_pointer_size_matching)]` to the crate attributes to enable precise `usize` matching
44
45 error[E0004]: non-exhaustive patterns: `_` not covered
46   --> $DIR/pointer-sized-int-deny.rs:24:8
47    |
48 LL |     m!(0usize, 0..usize::MAX | usize::MAX);
49    |        ^^^^^^ pattern `_` not covered
50    |
51    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
52    = note: the matched value is of type `usize`
53    = note: `usize` does not have a fixed maximum value, so a wildcard `_` is necessary to match exhaustively
54    = help: add `#![feature(precise_pointer_size_matching)]` to the crate attributes to enable precise `usize` matching
55
56 error[E0004]: non-exhaustive patterns: `(_, _)` not covered
57   --> $DIR/pointer-sized-int-deny.rs:26:8
58    |
59 LL |     m!((0usize, true), (0..5, true) | (5..=usize::MAX, true) | (0..=usize::MAX, false));
60    |        ^^^^^^^^^^^^^^ pattern `(_, _)` not covered
61    |
62    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
63    = note: the matched value is of type `(usize, bool)`
64
65 error[E0004]: non-exhaustive patterns: `_` not covered
66   --> $DIR/pointer-sized-int-deny.rs:29:8
67    |
68 LL |     m!(0isize, isize::MIN..=isize::MAX);
69    |        ^^^^^^ pattern `_` not covered
70    |
71    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
72    = note: the matched value is of type `isize`
73    = note: `isize` does not have a fixed maximum value, so a wildcard `_` is necessary to match exhaustively
74    = help: add `#![feature(precise_pointer_size_matching)]` to the crate attributes to enable precise `isize` matching
75
76 error[E0004]: non-exhaustive patterns: `_` not covered
77   --> $DIR/pointer-sized-int-deny.rs:31:8
78    |
79 LL |     m!(0isize, isize::MIN..5 | 5..=isize::MAX);
80    |        ^^^^^^ pattern `_` not covered
81    |
82    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
83    = note: the matched value is of type `isize`
84    = note: `isize` does not have a fixed maximum value, so a wildcard `_` is necessary to match exhaustively
85    = help: add `#![feature(precise_pointer_size_matching)]` to the crate attributes to enable precise `isize` matching
86
87 error[E0004]: non-exhaustive patterns: `_` not covered
88   --> $DIR/pointer-sized-int-deny.rs:33:8
89    |
90 LL |     m!(0isize, isize::MIN..isize::MAX | isize::MAX);
91    |        ^^^^^^ pattern `_` not covered
92    |
93    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
94    = note: the matched value is of type `isize`
95    = note: `isize` does not have a fixed maximum value, so a wildcard `_` is necessary to match exhaustively
96    = help: add `#![feature(precise_pointer_size_matching)]` to the crate attributes to enable precise `isize` matching
97
98 error[E0004]: non-exhaustive patterns: `(_, _)` not covered
99   --> $DIR/pointer-sized-int-deny.rs:35:8
100    |
101 LL |     m!((0isize, true), (isize::MIN..5, true)
102    |        ^^^^^^^^^^^^^^ pattern `(_, _)` not covered
103    |
104    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
105    = note: the matched value is of type `(isize, bool)`
106
107 error[E0004]: non-exhaustive patterns: `_` not covered
108   --> $DIR/pointer-sized-int-deny.rs:39:11
109    |
110 LL |     match 0isize {
111    |           ^^^^^^ pattern `_` not covered
112    |
113    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
114    = note: the matched value is of type `isize`
115    = note: `isize` does not have a fixed maximum value, so a wildcard `_` is necessary to match exhaustively
116    = help: add `#![feature(precise_pointer_size_matching)]` to the crate attributes to enable precise `isize` matching
117
118 error[E0004]: non-exhaustive patterns: type `usize` is non-empty
119   --> $DIR/pointer-sized-int-deny.rs:46:11
120    |
121 LL |     match 7usize {}
122    |           ^^^^^^
123    |
124    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
125    = note: the matched value is of type `usize`
126
127 error: aborting due to 12 previous errors
128
129 For more information about this error, try `rustc --explain E0004`.