@@ -11,7 +11,10 @@ error: unreachable pattern
11
11
--> $DIR/empty-types.rs:49:9
12
12
|
13
13
LL | _ => {}
14
- | ^ matches no values because `!` is uninhabited
14
+ | ^------
15
+ | |
16
+ | matches no values because `!` is uninhabited
17
+ | help: remove the match arm
15
18
|
16
19
= note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types
17
20
note: the lint level is defined here
@@ -24,7 +27,10 @@ error: unreachable pattern
24
27
--> $DIR/empty-types.rs:52:9
25
28
|
26
29
LL | _x => {}
27
- | ^^ matches no values because `!` is uninhabited
30
+ | ^^------
31
+ | |
32
+ | matches no values because `!` is uninhabited
33
+ | help: remove the match arm
28
34
|
29
35
= note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types
30
36
@@ -47,7 +53,10 @@ error: unreachable pattern
47
53
--> $DIR/empty-types.rs:83:9
48
54
|
49
55
LL | _ => {}
50
- | ^ matches no values because `!` is uninhabited
56
+ | ^------
57
+ | |
58
+ | matches no values because `!` is uninhabited
59
+ | help: remove the match arm
51
60
|
52
61
= note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types
53
62
@@ -120,15 +129,21 @@ error: unreachable pattern
120
129
--> $DIR/empty-types.rs:132:13
121
130
|
122
131
LL | _ => {}
123
- | ^ matches no values because `Void` is uninhabited
132
+ | ^------
133
+ | |
134
+ | matches no values because `Void` is uninhabited
135
+ | help: remove the match arm
124
136
|
125
137
= note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types
126
138
127
139
error: unreachable pattern
128
140
--> $DIR/empty-types.rs:135:13
129
141
|
130
142
LL | _ if false => {}
131
- | ^ matches no values because `Void` is uninhabited
143
+ | ^---------------
144
+ | |
145
+ | matches no values because `Void` is uninhabited
146
+ | help: remove the match arm
132
147
|
133
148
= note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types
134
149
@@ -155,47 +170,65 @@ error: unreachable pattern
155
170
--> $DIR/empty-types.rs:199:13
156
171
|
157
172
LL | _ => {}
158
- | ^ matches no values because `!` is uninhabited
173
+ | ^------
174
+ | |
175
+ | matches no values because `!` is uninhabited
176
+ | help: remove the match arm
159
177
|
160
178
= note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types
161
179
162
180
error: unreachable pattern
163
181
--> $DIR/empty-types.rs:204:13
164
182
|
165
183
LL | _ => {}
166
- | ^ matches no values because `!` is uninhabited
184
+ | ^------
185
+ | |
186
+ | matches no values because `!` is uninhabited
187
+ | help: remove the match arm
167
188
|
168
189
= note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types
169
190
170
191
error: unreachable pattern
171
192
--> $DIR/empty-types.rs:209:13
172
193
|
173
194
LL | _ => {}
174
- | ^ matches no values because `!` is uninhabited
195
+ | ^------
196
+ | |
197
+ | matches no values because `!` is uninhabited
198
+ | help: remove the match arm
175
199
|
176
200
= note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types
177
201
178
202
error: unreachable pattern
179
203
--> $DIR/empty-types.rs:214:13
180
204
|
181
205
LL | _ => {}
182
- | ^ matches no values because `!` is uninhabited
206
+ | ^------
207
+ | |
208
+ | matches no values because `!` is uninhabited
209
+ | help: remove the match arm
183
210
|
184
211
= note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types
185
212
186
213
error: unreachable pattern
187
214
--> $DIR/empty-types.rs:220:13
188
215
|
189
216
LL | _ => {}
190
- | ^ matches no values because `!` is uninhabited
217
+ | ^------
218
+ | |
219
+ | matches no values because `!` is uninhabited
220
+ | help: remove the match arm
191
221
|
192
222
= note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types
193
223
194
224
error: unreachable pattern
195
225
--> $DIR/empty-types.rs:281:9
196
226
|
197
227
LL | _ => {}
198
- | ^ matches no values because `!` is uninhabited
228
+ | ^------
229
+ | |
230
+ | matches no values because `!` is uninhabited
231
+ | help: remove the match arm
199
232
|
200
233
= note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types
201
234
@@ -476,31 +509,43 @@ error: unreachable pattern
476
509
--> $DIR/empty-types.rs:603:9
477
510
|
478
511
LL | _ => {}
479
- | ^ matches no values because `!` is uninhabited
512
+ | ^------
513
+ | |
514
+ | matches no values because `!` is uninhabited
515
+ | help: remove the match arm
480
516
|
481
517
= note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types
482
518
483
519
error: unreachable pattern
484
520
--> $DIR/empty-types.rs:606:9
485
521
|
486
522
LL | _x => {}
487
- | ^^ matches no values because `!` is uninhabited
523
+ | ^^------
524
+ | |
525
+ | matches no values because `!` is uninhabited
526
+ | help: remove the match arm
488
527
|
489
528
= note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types
490
529
491
530
error: unreachable pattern
492
531
--> $DIR/empty-types.rs:609:9
493
532
|
494
533
LL | _ if false => {}
495
- | ^ matches no values because `!` is uninhabited
534
+ | ^---------------
535
+ | |
536
+ | matches no values because `!` is uninhabited
537
+ | help: remove the match arm
496
538
|
497
539
= note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types
498
540
499
541
error: unreachable pattern
500
542
--> $DIR/empty-types.rs:612:9
501
543
|
502
544
LL | _x if false => {}
503
- | ^^ matches no values because `!` is uninhabited
545
+ | ^^---------------
546
+ | |
547
+ | matches no values because `!` is uninhabited
548
+ | help: remove the match arm
504
549
|
505
550
= note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types
506
551
0 commit comments