1
1
error: unreachable pattern
2
- --> $DIR/match- empty-exhaustive_patterns .rs:52 :9
2
+ --> $DIR/empty-match .rs:53 :9
3
3
|
4
4
LL | _ => {},
5
5
| ^
6
6
|
7
7
note: the lint level is defined here
8
- --> $DIR/match- empty-exhaustive_patterns .rs:5 :9
8
+ --> $DIR/empty-match .rs:6 :9
9
9
|
10
10
LL | #![deny(unreachable_patterns)]
11
11
| ^^^^^^^^^^^^^^^^^^^^
12
12
13
13
error: unreachable pattern
14
- --> $DIR/match- empty-exhaustive_patterns .rs:55 :9
14
+ --> $DIR/empty-match .rs:56 :9
15
15
|
16
16
LL | _ if false => {},
17
17
| ^
18
18
19
19
error: unreachable pattern
20
- --> $DIR/match- empty-exhaustive_patterns .rs:62 :9
20
+ --> $DIR/empty-match .rs:63 :9
21
21
|
22
22
LL | _ => {},
23
23
| ^
24
24
25
25
error: unreachable pattern
26
- --> $DIR/match- empty-exhaustive_patterns .rs:65 :9
26
+ --> $DIR/empty-match .rs:66 :9
27
27
|
28
28
LL | _ if false => {},
29
29
| ^
30
30
31
31
error: unreachable pattern
32
- --> $DIR/match- empty-exhaustive_patterns .rs:72 :9
32
+ --> $DIR/empty-match .rs:73 :9
33
33
|
34
34
LL | _ => {},
35
35
| ^
36
36
37
37
error: unreachable pattern
38
- --> $DIR/match- empty-exhaustive_patterns .rs:75 :9
38
+ --> $DIR/empty-match .rs:76 :9
39
39
|
40
40
LL | _ if false => {},
41
41
| ^
42
42
43
43
error: unreachable pattern
44
- --> $DIR/match- empty-exhaustive_patterns .rs:82 :9
44
+ --> $DIR/empty-match .rs:83 :9
45
45
|
46
46
LL | Some(_) => {}
47
47
| ^^^^^^^
48
48
49
49
error: unreachable pattern
50
- --> $DIR/match- empty-exhaustive_patterns .rs:86 :9
50
+ --> $DIR/empty-match .rs:87 :9
51
51
|
52
52
LL | Some(_) => {}
53
53
| ^^^^^^^
54
54
55
55
error[E0004]: non-exhaustive patterns: type `u8` is non-empty
56
- --> $DIR/match- empty-exhaustive_patterns .rs:89 :18
56
+ --> $DIR/empty-match .rs:90 :18
57
57
|
58
58
LL | match_empty!(0u8);
59
59
| ^^^
@@ -62,7 +62,7 @@ LL | match_empty!(0u8);
62
62
= note: the matched value is of type `u8`
63
63
64
64
error[E0004]: non-exhaustive patterns: type `NonEmptyStruct` is non-empty
65
- --> $DIR/match- empty-exhaustive_patterns .rs:91 :18
65
+ --> $DIR/empty-match .rs:92 :18
66
66
|
67
67
LL | struct NonEmptyStruct(bool);
68
68
| ---------------------------- `NonEmptyStruct` defined here
@@ -74,7 +74,7 @@ LL | match_empty!(NonEmptyStruct(true));
74
74
= note: the matched value is of type `NonEmptyStruct`
75
75
76
76
error[E0004]: non-exhaustive patterns: type `NonEmptyUnion1` is non-empty
77
- --> $DIR/match- empty-exhaustive_patterns .rs:93 :18
77
+ --> $DIR/empty-match .rs:94 :18
78
78
|
79
79
LL | / union NonEmptyUnion1 {
80
80
LL | | foo: (),
@@ -88,7 +88,7 @@ LL | match_empty!((NonEmptyUnion1 { foo: () }));
88
88
= note: the matched value is of type `NonEmptyUnion1`
89
89
90
90
error[E0004]: non-exhaustive patterns: type `NonEmptyUnion2` is non-empty
91
- --> $DIR/match- empty-exhaustive_patterns .rs:95 :18
91
+ --> $DIR/empty-match .rs:96 :18
92
92
|
93
93
LL | / union NonEmptyUnion2 {
94
94
LL | | foo: (),
@@ -103,7 +103,7 @@ LL | match_empty!((NonEmptyUnion2 { foo: () }));
103
103
= note: the matched value is of type `NonEmptyUnion2`
104
104
105
105
error[E0004]: non-exhaustive patterns: `Foo(_)` not covered
106
- --> $DIR/match- empty-exhaustive_patterns .rs:97 :18
106
+ --> $DIR/empty-match .rs:98 :18
107
107
|
108
108
LL | / enum NonEmptyEnum1 {
109
109
LL | | Foo(bool),
@@ -120,7 +120,7 @@ LL | match_empty!(NonEmptyEnum1::Foo(true));
120
120
= note: the matched value is of type `NonEmptyEnum1`
121
121
122
122
error[E0004]: non-exhaustive patterns: `Foo(_)` and `Bar` not covered
123
- --> $DIR/match- empty-exhaustive_patterns .rs:99 :18
123
+ --> $DIR/empty-match .rs:100 :18
124
124
|
125
125
LL | / enum NonEmptyEnum2 {
126
126
LL | | Foo(bool),
@@ -141,7 +141,7 @@ LL | match_empty!(NonEmptyEnum2::Foo(true));
141
141
= note: the matched value is of type `NonEmptyEnum2`
142
142
143
143
error[E0004]: non-exhaustive patterns: `V1`, `V2`, `V3` and 2 more not covered
144
- --> $DIR/match- empty-exhaustive_patterns .rs:101 :18
144
+ --> $DIR/empty-match .rs:102 :18
145
145
|
146
146
LL | / enum NonEmptyEnum5 {
147
147
LL | | V1, V2, V3, V4, V5,
@@ -155,7 +155,7 @@ LL | match_empty!(NonEmptyEnum5::V1);
155
155
= note: the matched value is of type `NonEmptyEnum5`
156
156
157
157
error[E0004]: non-exhaustive patterns: `_` not covered
158
- --> $DIR/match- empty-exhaustive_patterns .rs:104 :18
158
+ --> $DIR/empty-match .rs:105 :18
159
159
|
160
160
LL | match_false!(0u8);
161
161
| ^^^ pattern `_` not covered
@@ -164,7 +164,7 @@ LL | match_false!(0u8);
164
164
= note: the matched value is of type `u8`
165
165
166
166
error[E0004]: non-exhaustive patterns: `NonEmptyStruct(_)` not covered
167
- --> $DIR/match- empty-exhaustive_patterns .rs:106 :18
167
+ --> $DIR/empty-match .rs:107 :18
168
168
|
169
169
LL | struct NonEmptyStruct(bool);
170
170
| ---------------------------- `NonEmptyStruct` defined here
@@ -176,7 +176,7 @@ LL | match_false!(NonEmptyStruct(true));
176
176
= note: the matched value is of type `NonEmptyStruct`
177
177
178
178
error[E0004]: non-exhaustive patterns: `NonEmptyUnion1 { .. }` not covered
179
- --> $DIR/match- empty-exhaustive_patterns .rs:108 :18
179
+ --> $DIR/empty-match .rs:109 :18
180
180
|
181
181
LL | / union NonEmptyUnion1 {
182
182
LL | | foo: (),
@@ -190,7 +190,7 @@ LL | match_false!((NonEmptyUnion1 { foo: () }));
190
190
= note: the matched value is of type `NonEmptyUnion1`
191
191
192
192
error[E0004]: non-exhaustive patterns: `NonEmptyUnion2 { .. }` not covered
193
- --> $DIR/match- empty-exhaustive_patterns .rs:110 :18
193
+ --> $DIR/empty-match .rs:111 :18
194
194
|
195
195
LL | / union NonEmptyUnion2 {
196
196
LL | | foo: (),
@@ -205,7 +205,7 @@ LL | match_false!((NonEmptyUnion2 { foo: () }));
205
205
= note: the matched value is of type `NonEmptyUnion2`
206
206
207
207
error[E0004]: non-exhaustive patterns: `Foo(_)` not covered
208
- --> $DIR/match- empty-exhaustive_patterns .rs:112 :18
208
+ --> $DIR/empty-match .rs:113 :18
209
209
|
210
210
LL | / enum NonEmptyEnum1 {
211
211
LL | | Foo(bool),
@@ -222,7 +222,7 @@ LL | match_false!(NonEmptyEnum1::Foo(true));
222
222
= note: the matched value is of type `NonEmptyEnum1`
223
223
224
224
error[E0004]: non-exhaustive patterns: `Foo(_)` and `Bar` not covered
225
- --> $DIR/match- empty-exhaustive_patterns .rs:114 :18
225
+ --> $DIR/empty-match .rs:115 :18
226
226
|
227
227
LL | / enum NonEmptyEnum2 {
228
228
LL | | Foo(bool),
@@ -243,7 +243,7 @@ LL | match_false!(NonEmptyEnum2::Foo(true));
243
243
= note: the matched value is of type `NonEmptyEnum2`
244
244
245
245
error[E0004]: non-exhaustive patterns: `V1`, `V2`, `V3` and 2 more not covered
246
- --> $DIR/match- empty-exhaustive_patterns .rs:116 :18
246
+ --> $DIR/empty-match .rs:117 :18
247
247
|
248
248
LL | / enum NonEmptyEnum5 {
249
249
LL | | V1, V2, V3, V4, V5,
0 commit comments