Skip to content

Commit 6944bff

Browse files
committed
Remove outdated comment
1 parent aaa82ba commit 6944bff

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

Diff for: tests/ui/expr/if/bad-if-let-suggestion.rs

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
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-
51
fn b() {
62
if (i + j) = i {}
73
//~^ ERROR cannot find value `i` in this scope

Diff for: tests/ui/expr/if/bad-if-let-suggestion.stderr

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
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
33
|
44
LL | if (i + j) = i {}
55
| ^ not found in this scope
66

77
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
99
|
1010
LL | if (i + j) = i {}
1111
| ^ not found in this scope
1212

1313
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
1515
|
1616
LL | if (i + j) = i {}
1717
| ^ not found in this scope
1818

1919
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
2121
|
2222
LL | fn b() {
2323
| ------ similarly named function `b` defined here

0 commit comments

Comments
 (0)