]> git.proxmox.com Git - rustc.git/blob - src/test/ui/pattern/usefulness/exhaustive_integer_patterns.stderr
New upstream version 1.41.1+dfsg1
[rustc.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: lint level defined here
8 --> $DIR/exhaustive_integer_patterns.rs:3:9
9 |
10 LL | #![deny(unreachable_patterns)]
11 | ^^^^^^^^^^^^^^^^^^^^
12
13 error[E0004]: non-exhaustive patterns: `128u8..=std::u8::MAX` not covered
14 --> $DIR/exhaustive_integer_patterns.rs:28:11
15 |
16 LL | match x {
17 | ^ pattern `128u8..=std::u8::MAX` 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: `std::i8::MIN..=-8i8`, `-6i8`, `121i8..=124i8` and 1 more not covered
36 --> $DIR/exhaustive_integer_patterns.rs:41:11
37 |
38 LL | match x {
39 | ^ patterns `std::i8::MIN..=-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: `std::i8::MIN` not covered
44 --> $DIR/exhaustive_integer_patterns.rs:83:11
45 |
46 LL | match 0i8 {
47 | ^^^ pattern `std::i8::MIN` 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:91: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..=std::u8::MAX` not covered
60 --> $DIR/exhaustive_integer_patterns.rs:109:11
61 |
62 LL | match 0u8 {
63 | ^^^ pattern `128u8..=std::u8::MAX` 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..=std::u8::MAX, Some(_))` not covered
68 --> $DIR/exhaustive_integer_patterns.rs:121:11
69 |
70 LL | match (0u8, Some(())) {
71 | ^^^^^^^^^^^^^^^ patterns `(0u8, Some(_))` and `(2u8..=std::u8::MAX, 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:126: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: multiple patterns covering the same range
84 --> $DIR/exhaustive_integer_patterns.rs:141:9
85 |
86 LL | 0 .. 2 => {}
87 | ------ this range overlaps on `1u8`
88 LL | 1 ..= 2 => {}
89 | ^^^^^^^ overlapping patterns
90 |
91 note: lint level defined here
92 --> $DIR/exhaustive_integer_patterns.rs:4:9
93 |
94 LL | #![deny(overlapping_patterns)]
95 | ^^^^^^^^^^^^^^^^^^^^
96
97 error[E0004]: non-exhaustive patterns: `std::u128::MAX` not covered
98 --> $DIR/exhaustive_integer_patterns.rs:146:11
99 |
100 LL | match 0u128 {
101 | ^^^^^ pattern `std::u128::MAX` not covered
102 |
103 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
104
105 error[E0004]: non-exhaustive patterns: `5u128..=std::u128::MAX` not covered
106 --> $DIR/exhaustive_integer_patterns.rs:150:11
107 |
108 LL | match 0u128 {
109 | ^^^^^ pattern `5u128..=std::u128::MAX` not covered
110 |
111 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
112
113 error[E0004]: non-exhaustive patterns: `0u128..=3u128` not covered
114 --> $DIR/exhaustive_integer_patterns.rs:154:11
115 |
116 LL | match 0u128 {
117 | ^^^^^ pattern `0u128..=3u128` not covered
118 |
119 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
120
121 error: unreachable pattern
122 --> $DIR/exhaustive_integer_patterns.rs:162:9
123 |
124 LL | &FOO => {}
125 | ^^^^
126
127 error: aborting due to 15 previous errors
128
129 For more information about this error, try `rustc --explain E0004`.