]> git.lizzy.rs Git - rust.git/blob - src/test/ui/exhaustive_integer_patterns.stderr
Auto merge of #58972 - QuietMisdreavus:intra-doc-link-imports, r=GuillaumeGomez
[rust.git] / src / test / ui / exhaustive_integer_patterns.stderr
1 error: unreachable pattern
2   --> $DIR/exhaustive_integer_patterns.rs:23:9
3    |
4 LL |         200 => {}
5    |         ^^^
6    |
7 note: lint level defined here
8   --> $DIR/exhaustive_integer_patterns.rs:4:9
9    |
10 LL | #![deny(unreachable_patterns)]
11    |         ^^^^^^^^^^^^^^^^^^^^
12
13 error[E0004]: non-exhaustive patterns: `128u8..=255u8` not covered
14   --> $DIR/exhaustive_integer_patterns.rs:28:11
15    |
16 LL |     match x {
17    |           ^ pattern `128u8..=255u8` not covered
18    |
19    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
20
21 error[E0004]: non-exhaustive patterns: `11u8..=19u8`, `31u8..=34u8`, `36u8..=69u8` and 1 more not covered
22   --> $DIR/exhaustive_integer_patterns.rs:33:11
23    |
24 LL |     match x {
25    |           ^ patterns `11u8..=19u8`, `31u8..=34u8`, `36u8..=69u8` and 1 more not covered
26    |
27    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
28
29 error: unreachable pattern
30   --> $DIR/exhaustive_integer_patterns.rs:44:9
31    |
32 LL |         -2..=20 => {}
33    |         ^^^^^^^
34
35 error[E0004]: non-exhaustive patterns: `-128i8..=-8i8`, `-6i8`, `121i8..=124i8` and 1 more not covered
36   --> $DIR/exhaustive_integer_patterns.rs:41:11
37    |
38 LL |     match x {
39    |           ^ patterns `-128i8..=-8i8`, `-6i8`, `121i8..=124i8` and 1 more not covered
40    |
41    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
42
43 error[E0004]: non-exhaustive patterns: `-128i8` not covered
44   --> $DIR/exhaustive_integer_patterns.rs:82:11
45    |
46 LL |     match 0i8 {
47    |           ^^^ pattern `-128i8` not covered
48    |
49    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
50
51 error[E0004]: non-exhaustive patterns: `0i16` not covered
52   --> $DIR/exhaustive_integer_patterns.rs:90:11
53    |
54 LL |     match 0i16 {
55    |           ^^^^ pattern `0i16` not covered
56    |
57    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
58
59 error[E0004]: non-exhaustive patterns: `128u8..=255u8` not covered
60   --> $DIR/exhaustive_integer_patterns.rs:108:11
61    |
62 LL |     match 0u8 {
63    |           ^^^ pattern `128u8..=255u8` not covered
64    |
65    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
66
67 error[E0004]: non-exhaustive patterns: `(0u8, Some(_))` and `(2u8..=255u8, Some(_))` not covered
68   --> $DIR/exhaustive_integer_patterns.rs:120:11
69    |
70 LL |     match (0u8, Some(())) {
71    |           ^^^^^^^^^^^^^^^ patterns `(0u8, Some(_))` and `(2u8..=255u8, Some(_))` not covered
72    |
73    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
74
75 error[E0004]: non-exhaustive patterns: `(126u8..=127u8, false)` not covered
76   --> $DIR/exhaustive_integer_patterns.rs:125:11
77    |
78 LL |     match (0u8, true) {
79    |           ^^^^^^^^^^^ pattern `(126u8..=127u8, false)` not covered
80    |
81    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
82
83 error[E0004]: non-exhaustive patterns: `340282366920938463463374607431768211455u128` not covered
84   --> $DIR/exhaustive_integer_patterns.rs:145:11
85    |
86 LL |     match 0u128 {
87    |           ^^^^^ pattern `340282366920938463463374607431768211455u128` not covered
88    |
89    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
90
91 error[E0004]: non-exhaustive patterns: `5u128..=340282366920938463463374607431768211455u128` not covered
92   --> $DIR/exhaustive_integer_patterns.rs:149:11
93    |
94 LL |     match 0u128 {
95    |           ^^^^^ pattern `5u128..=340282366920938463463374607431768211455u128` not covered
96    |
97    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
98
99 error[E0004]: non-exhaustive patterns: `0u128..=3u128` not covered
100   --> $DIR/exhaustive_integer_patterns.rs:153:11
101    |
102 LL |     match 0u128 {
103    |           ^^^^^ pattern `0u128..=3u128` not covered
104    |
105    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
106
107 error: aborting due to 13 previous errors
108
109 For more information about this error, try `rustc --explain E0004`.