@@ -48,6 +48,12 @@ LL | -5..=120 => {}
48
48
LL | -2..=20 => {}
49
49
| ^^^^^^^ overlapping patterns
50
50
51
+ error: unreachable pattern
52
+ --> $DIR/exhaustive_integer_patterns.rs:44:9
53
+ |
54
+ LL | -2..=20 => {}
55
+ | ^^^^^^^
56
+
51
57
error[E0004]: non-exhaustive patterns: `std::i8::MIN..=-8i8`, `-6i8`, `121i8..=124i8` and 1 more not covered
52
58
--> $DIR/exhaustive_integer_patterns.rs:41:11
53
59
|
@@ -57,77 +63,77 @@ LL | match x {
57
63
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
58
64
59
65
error[E0004]: non-exhaustive patterns: `std::i8::MIN` not covered
60
- --> $DIR/exhaustive_integer_patterns.rs:82 :11
66
+ --> $DIR/exhaustive_integer_patterns.rs:84 :11
61
67
|
62
68
LL | match 0i8 {
63
69
| ^^^ pattern `std::i8::MIN` not covered
64
70
|
65
71
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
66
72
67
73
error[E0004]: non-exhaustive patterns: `0i16` not covered
68
- --> $DIR/exhaustive_integer_patterns.rs:90 :11
74
+ --> $DIR/exhaustive_integer_patterns.rs:92 :11
69
75
|
70
76
LL | match 0i16 {
71
77
| ^^^^ pattern `0i16` not covered
72
78
|
73
79
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
74
80
75
81
error[E0004]: non-exhaustive patterns: `128u8..=std::u8::MAX` not covered
76
- --> $DIR/exhaustive_integer_patterns.rs:108 :11
82
+ --> $DIR/exhaustive_integer_patterns.rs:110 :11
77
83
|
78
84
LL | match 0u8 {
79
85
| ^^^ pattern `128u8..=std::u8::MAX` not covered
80
86
|
81
87
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
82
88
83
89
error[E0004]: non-exhaustive patterns: `(0u8, Some(_))` and `(2u8..=std::u8::MAX, Some(_))` not covered
84
- --> $DIR/exhaustive_integer_patterns.rs:120 :11
90
+ --> $DIR/exhaustive_integer_patterns.rs:122 :11
85
91
|
86
92
LL | match (0u8, Some(())) {
87
93
| ^^^^^^^^^^^^^^^ patterns `(0u8, Some(_))` and `(2u8..=std::u8::MAX, Some(_))` not covered
88
94
|
89
95
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
90
96
91
97
error[E0004]: non-exhaustive patterns: `(126u8..=127u8, false)` not covered
92
- --> $DIR/exhaustive_integer_patterns.rs:125 :11
98
+ --> $DIR/exhaustive_integer_patterns.rs:127 :11
93
99
|
94
100
LL | match (0u8, true) {
95
101
| ^^^^^^^^^^^ pattern `(126u8..=127u8, false)` not covered
96
102
|
97
103
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
98
104
99
105
error: multiple patterns covering the same range
100
- --> $DIR/exhaustive_integer_patterns.rs:140 :9
106
+ --> $DIR/exhaustive_integer_patterns.rs:142 :9
101
107
|
102
108
LL | 0 .. 2 => {}
103
109
| ------ this range overlaps on `1u8`
104
110
LL | 1 ..= 2 => {}
105
111
| ^^^^^^^ overlapping patterns
106
112
107
113
error[E0004]: non-exhaustive patterns: `std::u128::MAX` not covered
108
- --> $DIR/exhaustive_integer_patterns.rs:145 :11
114
+ --> $DIR/exhaustive_integer_patterns.rs:147 :11
109
115
|
110
116
LL | match 0u128 {
111
117
| ^^^^^ pattern `std::u128::MAX` not covered
112
118
|
113
119
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
114
120
115
121
error[E0004]: non-exhaustive patterns: `5u128..=std::u128::MAX` not covered
116
- --> $DIR/exhaustive_integer_patterns.rs:149 :11
122
+ --> $DIR/exhaustive_integer_patterns.rs:151 :11
117
123
|
118
124
LL | match 0u128 {
119
125
| ^^^^^ pattern `5u128..=std::u128::MAX` not covered
120
126
|
121
127
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
122
128
123
129
error[E0004]: non-exhaustive patterns: `0u128..=3u128` not covered
124
- --> $DIR/exhaustive_integer_patterns.rs:153 :11
130
+ --> $DIR/exhaustive_integer_patterns.rs:155 :11
125
131
|
126
132
LL | match 0u128 {
127
133
| ^^^^^ pattern `0u128..=3u128` not covered
128
134
|
129
135
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
130
136
131
- error: aborting due to 15 previous errors
137
+ error: aborting due to 16 previous errors
132
138
133
139
For more information about this error, try `rustc --explain E0004`.
0 commit comments