File tree 2 files changed +4
-8
lines changed
2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 1
- // FIXME(compiler-errors): This really should suggest `let` on the RHS of the
2
- // `&&` operator, but that's kinda hard to do because of precedence.
3
- // Instead, for now we just make sure not to suggest `if let let`.
4
-
5
1
fn b ( ) {
6
2
if ( i + j) = i { }
7
3
//~^ ERROR cannot find value `i` in this scope
Original file line number Diff line number Diff line change 1
1
error[E0425]: cannot find value `i` in this scope
2
- --> $DIR/bad-if-let-suggestion.rs:6 :9
2
+ --> $DIR/bad-if-let-suggestion.rs:2 :9
3
3
|
4
4
LL | if (i + j) = i {}
5
5
| ^ not found in this scope
6
6
7
7
error[E0425]: cannot find value `j` in this scope
8
- --> $DIR/bad-if-let-suggestion.rs:6 :13
8
+ --> $DIR/bad-if-let-suggestion.rs:2 :13
9
9
|
10
10
LL | if (i + j) = i {}
11
11
| ^ not found in this scope
12
12
13
13
error[E0425]: cannot find value `i` in this scope
14
- --> $DIR/bad-if-let-suggestion.rs:6 :18
14
+ --> $DIR/bad-if-let-suggestion.rs:2 :18
15
15
|
16
16
LL | if (i + j) = i {}
17
17
| ^ not found in this scope
18
18
19
19
error[E0425]: cannot find value `x` in this scope
20
- --> $DIR/bad-if-let-suggestion.rs:13 :8
20
+ --> $DIR/bad-if-let-suggestion.rs:9 :8
21
21
|
22
22
LL | fn b() {
23
23
| ------ similarly named function `b` defined here
You can’t perform that action at this time.
0 commit comments