1
1
error: unreachable pattern
2
- --> $DIR/exhaustiveness-unreachable-pattern.rs:7 :9
2
+ --> $DIR/exhaustiveness-unreachable-pattern.rs:8 :9
3
3
|
4
4
LL | (1,) => {}
5
5
| ^^^^
@@ -11,128 +11,140 @@ LL | #![deny(unreachable_patterns)]
11
11
| ^^^^^^^^^^^^^^^^^^^^
12
12
13
13
error: unreachable pattern
14
- --> $DIR/exhaustiveness-unreachable-pattern.rs:12 :9
14
+ --> $DIR/exhaustiveness-unreachable-pattern.rs:13 :9
15
15
|
16
16
LL | (2,) => {}
17
17
| ^^^^
18
18
19
19
error: unreachable pattern
20
- --> $DIR/exhaustiveness-unreachable-pattern.rs:18 :9
20
+ --> $DIR/exhaustiveness-unreachable-pattern.rs:19 :9
21
21
|
22
22
LL | (1 | 2,) => {}
23
23
| ^^^^^^^^
24
24
25
25
error: unreachable pattern
26
- --> $DIR/exhaustiveness-unreachable-pattern.rs:23 :9
26
+ --> $DIR/exhaustiveness-unreachable-pattern.rs:24 :9
27
27
|
28
28
LL | (1, 3) => {}
29
29
| ^^^^^^
30
30
31
31
error: unreachable pattern
32
- --> $DIR/exhaustiveness-unreachable-pattern.rs:24 :9
32
+ --> $DIR/exhaustiveness-unreachable-pattern.rs:25 :9
33
33
|
34
34
LL | (1, 4) => {}
35
35
| ^^^^^^
36
36
37
37
error: unreachable pattern
38
- --> $DIR/exhaustiveness-unreachable-pattern.rs:25 :9
38
+ --> $DIR/exhaustiveness-unreachable-pattern.rs:26 :9
39
39
|
40
40
LL | (2, 4) => {}
41
41
| ^^^^^^
42
42
43
43
error: unreachable pattern
44
- --> $DIR/exhaustiveness-unreachable-pattern.rs:26 :9
44
+ --> $DIR/exhaustiveness-unreachable-pattern.rs:27 :9
45
45
|
46
46
LL | (2 | 1, 4) => {}
47
47
| ^^^^^^^^^^
48
48
49
49
error: unreachable pattern
50
- --> $DIR/exhaustiveness-unreachable-pattern.rs:28 :9
50
+ --> $DIR/exhaustiveness-unreachable-pattern.rs:29 :9
51
51
|
52
52
LL | (1, 4 | 5) => {}
53
53
| ^^^^^^^^^^
54
54
55
55
error: unreachable pattern
56
- --> $DIR/exhaustiveness-unreachable-pattern.rs:36 :9
56
+ --> $DIR/exhaustiveness-unreachable-pattern.rs:37 :9
57
57
|
58
58
LL | (Some(1),) => {}
59
59
| ^^^^^^^^^^
60
60
61
61
error: unreachable pattern
62
- --> $DIR/exhaustiveness-unreachable-pattern.rs:37 :9
62
+ --> $DIR/exhaustiveness-unreachable-pattern.rs:38 :9
63
63
|
64
64
LL | (None,) => {}
65
65
| ^^^^^^^
66
66
67
67
error: unreachable pattern
68
- --> $DIR/exhaustiveness-unreachable-pattern.rs:42 :9
68
+ --> $DIR/exhaustiveness-unreachable-pattern.rs:43 :9
69
69
|
70
70
LL | ((1..=4,),) => {}
71
71
| ^^^^^^^^^^^
72
72
73
73
error: unreachable pattern
74
- --> $DIR/exhaustiveness-unreachable-pattern.rs:47 :14
74
+ --> $DIR/exhaustiveness-unreachable-pattern.rs:48 :14
75
75
|
76
76
LL | (1 | 1,) => {}
77
77
| ^
78
78
79
79
error: unreachable pattern
80
- --> $DIR/exhaustiveness-unreachable-pattern.rs:51 :19
80
+ --> $DIR/exhaustiveness-unreachable-pattern.rs:52 :19
81
81
|
82
82
LL | (0 | 1) | 1 => {}
83
83
| ^
84
84
85
85
error: unreachable pattern
86
- --> $DIR/exhaustiveness-unreachable-pattern.rs:57 :14
86
+ --> $DIR/exhaustiveness-unreachable-pattern.rs:58 :14
87
87
|
88
88
LL | 0 | (0 | 0) => {}
89
89
| ^
90
90
91
91
error: unreachable pattern
92
- --> $DIR/exhaustiveness-unreachable-pattern.rs:57 :18
92
+ --> $DIR/exhaustiveness-unreachable-pattern.rs:58 :18
93
93
|
94
94
LL | 0 | (0 | 0) => {}
95
95
| ^
96
96
97
97
error: unreachable pattern
98
- --> $DIR/exhaustiveness-unreachable-pattern.rs:65 :13
98
+ --> $DIR/exhaustiveness-unreachable-pattern.rs:66 :13
99
99
|
100
100
LL | / Some(
101
101
LL | | 0 | 0) => {}
102
102
| |______________________^
103
103
104
104
error: unreachable pattern
105
- --> $DIR/exhaustiveness-unreachable-pattern.rs:71 :15
105
+ --> $DIR/exhaustiveness-unreachable-pattern.rs:72 :15
106
106
|
107
107
LL | | 0
108
108
| ^
109
109
110
110
error: unreachable pattern
111
- --> $DIR/exhaustiveness-unreachable-pattern.rs:73 :15
111
+ --> $DIR/exhaustiveness-unreachable-pattern.rs:74 :15
112
112
|
113
113
LL | | 0] => {}
114
114
| ^
115
115
116
116
error: unreachable pattern
117
- --> $DIR/exhaustiveness-unreachable-pattern.rs:81:10
117
+ --> $DIR/exhaustiveness-unreachable-pattern.rs:78:20
118
+ |
119
+ LL | (true, 0 | 0) => {}
120
+ | ^
121
+
122
+ error: unreachable pattern
123
+ --> $DIR/exhaustiveness-unreachable-pattern.rs:79:17
124
+ |
125
+ LL | (_, 0 | 0) => {}
126
+ | ^
127
+
128
+ error: unreachable pattern
129
+ --> $DIR/exhaustiveness-unreachable-pattern.rs:87:10
118
130
|
119
131
LL | [1
120
132
| ^
121
133
122
134
error: unreachable pattern
123
- --> $DIR/exhaustiveness-unreachable-pattern.rs:93 :10
135
+ --> $DIR/exhaustiveness-unreachable-pattern.rs:99 :10
124
136
|
125
137
LL | [true
126
138
| ^^^^
127
139
128
140
error: unreachable pattern
129
- --> $DIR/exhaustiveness-unreachable-pattern.rs:100 :36
141
+ --> $DIR/exhaustiveness-unreachable-pattern.rs:106 :36
130
142
|
131
143
LL | (true | false, None | Some(true
132
144
| ^^^^
133
145
134
146
error: unreachable pattern
135
- --> $DIR/exhaustiveness-unreachable-pattern.rs:105 :14
147
+ --> $DIR/exhaustiveness-unreachable-pattern.rs:111 :14
136
148
|
137
149
LL | (true
138
150
| ^^^^
@@ -143,28 +155,34 @@ LL | (true | false, None | Some(t_or_f!())) => {}
143
155
= note: this error originates in the macro `t_or_f` (in Nightly builds, run with -Z macro-backtrace for more info)
144
156
145
157
error: unreachable pattern
146
- --> $DIR/exhaustiveness-unreachable-pattern.rs:116 :14
158
+ --> $DIR/exhaustiveness-unreachable-pattern.rs:122 :14
147
159
|
148
160
LL | Some(0
149
161
| ^
150
162
151
163
error: unreachable pattern
152
- --> $DIR/exhaustiveness-unreachable-pattern.rs:135 :19
164
+ --> $DIR/exhaustiveness-unreachable-pattern.rs:141 :19
153
165
|
154
166
LL | | false) => {}
155
167
| ^^^^^
156
168
157
169
error: unreachable pattern
158
- --> $DIR/exhaustiveness-unreachable-pattern.rs:143 :15
170
+ --> $DIR/exhaustiveness-unreachable-pattern.rs:149 :15
159
171
|
160
172
LL | | true) => {}
161
173
| ^^^^
162
174
163
175
error: unreachable pattern
164
- --> $DIR/exhaustiveness-unreachable-pattern.rs:149 :15
176
+ --> $DIR/exhaustiveness-unreachable-pattern.rs:155 :15
165
177
|
166
178
LL | | true,
167
179
| ^^^^
168
180
169
- error: aborting due to 26 previous errors
181
+ error: unreachable pattern
182
+ --> $DIR/exhaustiveness-unreachable-pattern.rs:160:15
183
+ |
184
+ LL | | (y, x) => {}
185
+ | ^^^^^^
186
+
187
+ error: aborting due to 29 previous errors
170
188
0 commit comments