File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 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-
51fn b ( ) {
62 if ( i + j) = i { }
73 //~^ ERROR cannot find value `i` in this scope
Original file line number Diff line number Diff line change 11error[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
33 |
44LL | if (i + j) = i {}
55 | ^ not found in this scope
66
77error[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
99 |
1010LL | if (i + j) = i {}
1111 | ^ not found in this scope
1212
1313error[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
1515 |
1616LL | if (i + j) = i {}
1717 | ^ not found in this scope
1818
1919error[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
2121 |
2222LL | fn b() {
2323 | ------ similarly named function `b` defined here
You can’t perform that action at this time.
0 commit comments