Skip to content

Commit

Permalink
Remove outdated comment
Browse files Browse the repository at this point in the history
  • Loading branch information
estebank committed Nov 23, 2023
1 parent aaa82ba commit 6944bff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
4 changes: 0 additions & 4 deletions tests/ui/expr/if/bad-if-let-suggestion.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
// FIXME(compiler-errors): This really should suggest `let` on the RHS of the
// `&&` operator, but that's kinda hard to do because of precedence.
// Instead, for now we just make sure not to suggest `if let let`.

fn b() {
if (i + j) = i {}
//~^ ERROR cannot find value `i` in this scope
Expand Down
8 changes: 4 additions & 4 deletions tests/ui/expr/if/bad-if-let-suggestion.stderr
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
error[E0425]: cannot find value `i` in this scope
--> $DIR/bad-if-let-suggestion.rs:6:9
--> $DIR/bad-if-let-suggestion.rs:2:9
|
LL | if (i + j) = i {}
| ^ not found in this scope

error[E0425]: cannot find value `j` in this scope
--> $DIR/bad-if-let-suggestion.rs:6:13
--> $DIR/bad-if-let-suggestion.rs:2:13
|
LL | if (i + j) = i {}
| ^ not found in this scope

error[E0425]: cannot find value `i` in this scope
--> $DIR/bad-if-let-suggestion.rs:6:18
--> $DIR/bad-if-let-suggestion.rs:2:18
|
LL | if (i + j) = i {}
| ^ not found in this scope

error[E0425]: cannot find value `x` in this scope
--> $DIR/bad-if-let-suggestion.rs:13:8
--> $DIR/bad-if-let-suggestion.rs:9:8
|
LL | fn b() {
| ------ similarly named function `b` defined here
Expand Down

0 comments on commit 6944bff

Please sign in to comment.