]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/usefulness/exhaustive_integer_patterns.stderr
Add test for eval order for a+=b
[rust.git] / src / test / ui / pattern / usefulness / exhaustive_integer_patterns.stderr
1 error: unreachable pattern
2   --> $DIR/exhaustive_integer_patterns.rs:23:9
3    |
4 LL |         200 => {}
5    |         ^^^
6    |
7 note: the lint level is defined here
8   --> $DIR/exhaustive_integer_patterns.rs:3:9
9    |
10 LL | #![deny(unreachable_patterns)]
11    |         ^^^^^^^^^^^^^^^^^^^^
12
13 error[E0004]: non-exhaustive patterns: `128_u8..=u8::MAX` not covered
14   --> $DIR/exhaustive_integer_patterns.rs:28:11
15    |
16 LL |     match x {
17    |           ^ pattern `128_u8..=u8::MAX` not covered
18    |
19    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
20    = note: the matched value is of type `u8`
21
22 error[E0004]: non-exhaustive patterns: `11_u8..=19_u8`, `31_u8..=34_u8`, `36_u8..=69_u8` and 1 more not covered
23   --> $DIR/exhaustive_integer_patterns.rs:33:11
24    |
25 LL |     match x {
26    |           ^ patterns `11_u8..=19_u8`, `31_u8..=34_u8`, `36_u8..=69_u8` and 1 more not covered
27    |
28    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
29    = note: the matched value is of type `u8`
30
31 error: unreachable pattern
32   --> $DIR/exhaustive_integer_patterns.rs:44:9
33    |
34 LL |         -2..=20 => {}
35    |         ^^^^^^^
36
37 error[E0004]: non-exhaustive patterns: `i8::MIN..=-8_i8`, `-6_i8`, `121_i8..=124_i8` and 1 more not covered
38   --> $DIR/exhaustive_integer_patterns.rs:41:11
39    |
40 LL |     match x {
41    |           ^ patterns `i8::MIN..=-8_i8`, `-6_i8`, `121_i8..=124_i8` and 1 more not covered
42    |
43    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
44    = note: the matched value is of type `i8`
45
46 error[E0004]: non-exhaustive patterns: `i8::MIN` not covered
47   --> $DIR/exhaustive_integer_patterns.rs:83:11
48    |
49 LL |     match 0i8 {
50    |           ^^^ pattern `i8::MIN` not covered
51    |
52    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
53    = note: the matched value is of type `i8`
54
55 error[E0004]: non-exhaustive patterns: `0_i16` not covered
56   --> $DIR/exhaustive_integer_patterns.rs:91:11
57    |
58 LL |     match 0i16 {
59    |           ^^^^ pattern `0_i16` not covered
60    |
61    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
62    = note: the matched value is of type `i16`
63
64 error[E0004]: non-exhaustive patterns: `128_u8..=u8::MAX` not covered
65   --> $DIR/exhaustive_integer_patterns.rs:109:11
66    |
67 LL |     match 0u8 {
68    |           ^^^ pattern `128_u8..=u8::MAX` not covered
69    |
70    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
71    = note: the matched value is of type `u8`
72
73 error[E0004]: non-exhaustive patterns: `(0_u8, Some(_))` and `(2_u8..=u8::MAX, Some(_))` not covered
74   --> $DIR/exhaustive_integer_patterns.rs:121:11
75    |
76 LL |     match (0u8, Some(())) {
77    |           ^^^^^^^^^^^^^^^ patterns `(0_u8, Some(_))` and `(2_u8..=u8::MAX, Some(_))` not covered
78    |
79    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
80    = note: the matched value is of type `(u8, Option<()>)`
81
82 error[E0004]: non-exhaustive patterns: `(126_u8..=127_u8, false)` not covered
83   --> $DIR/exhaustive_integer_patterns.rs:126:11
84    |
85 LL |     match (0u8, true) {
86    |           ^^^^^^^^^^^ pattern `(126_u8..=127_u8, false)` not covered
87    |
88    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
89    = note: the matched value is of type `(u8, bool)`
90
91 error: multiple patterns covering the same range
92   --> $DIR/exhaustive_integer_patterns.rs:141:9
93    |
94 LL |         0 .. 2 => {}
95    |         ------ this range overlaps on `1_u8`
96 LL |         1 ..= 2 => {}
97    |         ^^^^^^^ overlapping patterns
98    |
99 note: the lint level is defined here
100   --> $DIR/exhaustive_integer_patterns.rs:4:9
101    |
102 LL | #![deny(overlapping_patterns)]
103    |         ^^^^^^^^^^^^^^^^^^^^
104
105 error[E0004]: non-exhaustive patterns: `u128::MAX` not covered
106   --> $DIR/exhaustive_integer_patterns.rs:146:11
107    |
108 LL |     match 0u128 {
109    |           ^^^^^ pattern `u128::MAX` not covered
110    |
111    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
112    = note: the matched value is of type `u128`
113
114 error[E0004]: non-exhaustive patterns: `5_u128..=u128::MAX` not covered
115   --> $DIR/exhaustive_integer_patterns.rs:150:11
116    |
117 LL |     match 0u128 {
118    |           ^^^^^ pattern `5_u128..=u128::MAX` not covered
119    |
120    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
121    = note: the matched value is of type `u128`
122
123 error[E0004]: non-exhaustive patterns: `0_u128..=3_u128` not covered
124   --> $DIR/exhaustive_integer_patterns.rs:154:11
125    |
126 LL |     match 0u128 {
127    |           ^^^^^ pattern `0_u128..=3_u128` not covered
128    |
129    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
130    = note: the matched value is of type `u128`
131
132 error: unreachable pattern
133   --> $DIR/exhaustive_integer_patterns.rs:162:9
134    |
135 LL |         &FOO => {}
136    |         ^^^^
137
138 error: unreachable pattern
139   --> $DIR/exhaustive_integer_patterns.rs:163:9
140    |
141 LL |         BAR => {}
142    |         ^^^
143
144 error: aborting due to 16 previous errors
145
146 For more information about this error, try `rustc --explain E0004`.