11error[E0408]: variable `y` is not bound in all patterns
2- --> $DIR/name-resolution.rs:38 :10
2+ --> $DIR/name-resolution.rs:37 :10
33 |
44LL | ((Ok(x) if y) | (Err(y) if x),) => x && y,
55 | ^^^^^^^^^^^^ - variable not in all patterns
@@ -13,7 +13,7 @@ LL + ((Ok(x) if y) | (Err(x) if x),) => x && y,
1313 |
1414
1515error[E0408]: variable `x` is not bound in all patterns
16- --> $DIR/name-resolution.rs:38 :25
16+ --> $DIR/name-resolution.rs:37 :25
1717 |
1818LL | ((Ok(x) if y) | (Err(y) if x),) => x && y,
1919 | - ^^^^^^^^^^^^^ pattern doesn't bind `x`
@@ -27,15 +27,15 @@ LL + ((Ok(y) if y) | (Err(y) if x),) => x && y,
2727 |
2828
2929error[E0408]: variable `x` is not bound in all patterns
30- --> $DIR/name-resolution.rs:64 :28
30+ --> $DIR/name-resolution.rs:63 :28
3131 |
3232LL | Some(x if x > 0) | None => {}
3333 | - ^^^^ pattern doesn't bind `x`
3434 | |
3535 | variable not in all patterns
3636
3737error[E0425]: cannot find value `x` in this scope
38- --> $DIR/name-resolution.rs:11 :34
38+ --> $DIR/name-resolution.rs:10 :34
3939 |
4040LL | fn bad_fn_item_1(x: bool, ((y if x) | y): bool) {}
4141 | ^
@@ -47,7 +47,7 @@ LL + fn bad_fn_item_1(x: bool, ((y if y) | y): bool) {}
4747 |
4848
4949error[E0425]: cannot find value `y` in this scope
50- --> $DIR/name-resolution.rs:13 :25
50+ --> $DIR/name-resolution.rs:12 :25
5151 |
5252LL | fn bad_fn_item_2(((x if y) | x): bool, y: bool) {}
5353 | ^
@@ -59,7 +59,7 @@ LL + fn bad_fn_item_2(((x if x) | x): bool, y: bool) {}
5959 |
6060
6161error[E0425]: cannot find value `x` in this scope
62- --> $DIR/name-resolution.rs:21 :18
62+ --> $DIR/name-resolution.rs:20 :18
6363 |
6464LL | (x, y if x) => x && y,
6565 | ^
@@ -71,7 +71,7 @@ LL + (x, y if y) => x && y,
7171 |
7272
7373error[E0425]: cannot find value `y` in this scope
74- --> $DIR/name-resolution.rs:23 :15
74+ --> $DIR/name-resolution.rs:22 :15
7575 |
7676LL | (x if y, y) => x && y,
7777 | ^
@@ -83,7 +83,7 @@ LL + (x if x, y) => x && y,
8383 |
8484
8585error[E0425]: cannot find value `x` in this scope
86- --> $DIR/name-resolution.rs:30 :20
86+ --> $DIR/name-resolution.rs:29 :20
8787 |
8888LL | (x @ (y if x),) => x && y,
8989 | ^
@@ -95,7 +95,7 @@ LL + (x @ (y if y),) => x && y,
9595 |
9696
9797error[E0425]: cannot find value `y` in this scope
98- --> $DIR/name-resolution.rs:38 :20
98+ --> $DIR/name-resolution.rs:37 :20
9999 |
100100LL | ((Ok(x) if y) | (Err(y) if x),) => x && y,
101101 | ^
@@ -107,7 +107,7 @@ LL + ((Ok(x) if x) | (Err(y) if x),) => x && y,
107107 |
108108
109109error[E0425]: cannot find value `x` in this scope
110- --> $DIR/name-resolution.rs:38 :36
110+ --> $DIR/name-resolution.rs:37 :36
111111 |
112112LL | ((Ok(x) if y) | (Err(y) if x),) => x && y,
113113 | ^
@@ -119,13 +119,13 @@ LL + ((Ok(x) if y) | (Err(y) if y),) => x && y,
119119 |
120120
121121error[E0425]: cannot find value `nonexistent` in this scope
122- --> $DIR/name-resolution.rs:45 :15
122+ --> $DIR/name-resolution.rs:44 :15
123123 |
124124LL | let (_ if nonexistent) = true;
125125 | ^^^^^^^^^^^ not found in this scope
126126
127127error[E0425]: cannot find value `x` in this scope
128- --> $DIR/name-resolution.rs:47 :22
128+ --> $DIR/name-resolution.rs:46 :22
129129 |
130130LL | if let ((x, y if x) | (x if y, y)) = (true, true) { x && y; }
131131 | ^
@@ -137,7 +137,7 @@ LL + if let ((x, y if y) | (x if y, y)) = (true, true) { x && y; }
137137 |
138138
139139error[E0425]: cannot find value `y` in this scope
140- --> $DIR/name-resolution.rs:47 :33
140+ --> $DIR/name-resolution.rs:46 :33
141141 |
142142LL | if let ((x, y if x) | (x if y, y)) = (true, true) { x && y; }
143143 | ^
@@ -149,7 +149,7 @@ LL + if let ((x, y if x) | (x if x, y)) = (true, true) { x && y; }
149149 |
150150
151151error[E0425]: cannot find value `x` in this scope
152- --> $DIR/name-resolution.rs:50 :25
152+ --> $DIR/name-resolution.rs:49 :25
153153 |
154154LL | while let ((x, y if x) | (x if y, y)) = (true, true) { x && y; }
155155 | ^
@@ -161,7 +161,7 @@ LL + while let ((x, y if y) | (x if y, y)) = (true, true) { x && y; }
161161 |
162162
163163error[E0425]: cannot find value `y` in this scope
164- --> $DIR/name-resolution.rs:50 :36
164+ --> $DIR/name-resolution.rs:49 :36
165165 |
166166LL | while let ((x, y if x) | (x if y, y)) = (true, true) { x && y; }
167167 | ^
@@ -173,7 +173,7 @@ LL + while let ((x, y if x) | (x if x, y)) = (true, true) { x && y; }
173173 |
174174
175175error[E0425]: cannot find value `x` in this scope
176- --> $DIR/name-resolution.rs:53 :19
176+ --> $DIR/name-resolution.rs:52 :19
177177 |
178178LL | for ((x, y if x) | (x if y, y)) in [(true, true)] { x && y; }
179179 | ^
@@ -185,7 +185,7 @@ LL + for ((x, y if y) | (x if y, y)) in [(true, true)] { x && y; }
185185 |
186186
187187error[E0425]: cannot find value `y` in this scope
188- --> $DIR/name-resolution.rs:53 :30
188+ --> $DIR/name-resolution.rs:52 :30
189189 |
190190LL | for ((x, y if x) | (x if y, y)) in [(true, true)] { x && y; }
191191 | ^
@@ -197,7 +197,7 @@ LL + for ((x, y if x) | (x if x, y)) in [(true, true)] { x && y; }
197197 |
198198
199199error[E0425]: cannot find value `y` in this scope
200- --> $DIR/name-resolution.rs:58 :13
200+ --> $DIR/name-resolution.rs:57 :13
201201 |
202202LL | (|(x if y), (y if x)| x && y)(true, true);
203203 | ^
@@ -209,7 +209,7 @@ LL + (|(x if x), (y if x)| x && y)(true, true);
209209 |
210210
211211error[E0425]: cannot find value `x` in this scope
212- --> $DIR/name-resolution.rs:58 :23
212+ --> $DIR/name-resolution.rs:57 :23
213213 |
214214LL | (|(x if y), (y if x)| x && y)(true, true);
215215 | ^
@@ -221,24 +221,15 @@ LL + (|(x if y), (y if y)| x && y)(true, true);
221221 |
222222
223223error[E0308]: mismatched types
224- --> $DIR/name-resolution.rs:76 :18
224+ --> $DIR/name-resolution.rs:75 :18
225225 |
226226LL | local if local => 0,
227227 | ^^^^^ expected `bool`, found `({integer}, {integer})`
228228 |
229229 = note: expected type `bool`
230230 found tuple `({integer}, {integer})`
231231
232- error[E0381]: used binding `x` is possibly-uninitialized
233- --> $DIR/name-resolution.rs:8:49
234- |
235- LL | fn good_fn_item(((x if x) | x): bool) -> bool { x }
236- | - - ^ `x` used here but it is possibly-uninitialized
237- | | |
238- | | binding initialized here in some conditions
239- | binding declared here but left uninitialized
240-
241- error: aborting due to 21 previous errors
232+ error: aborting due to 20 previous errors
242233
243- Some errors have detailed explanations: E0308, E0381, E0408, E0425.
234+ Some errors have detailed explanations: E0308, E0408, E0425.
244235For more information about an error, try `rustc --explain E0308`.
0 commit comments