about summary refs log tree commit diff
path: root/src/test/ui/expr
diff options
context:
space:
mode:
authorTakayuki Maeda <takoyaki0316@gmail.com>2022-10-05 22:51:22 +0900
committerTakayuki Maeda <takoyaki0316@gmail.com>2022-10-05 22:51:22 +0900
commitb7c42c55a2e64e77d4eced0ccd51b5f2603395a0 (patch)
tree7809f92d97b6299624d5c1a13f5bd41d752f77a2 /src/test/ui/expr
parent760279f3cc6434fcb1708a741bddfa4bd9d10efb (diff)
suggest `==` to the rest of assign expr
Diffstat (limited to 'src/test/ui/expr')
-rw-r--r--src/test/ui/expr/if/bad-if-let-suggestion.stderr5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/ui/expr/if/bad-if-let-suggestion.stderr b/src/test/ui/expr/if/bad-if-let-suggestion.stderr
index 60d286fedf5..3a53a20b453 100644
--- a/src/test/ui/expr/if/bad-if-let-suggestion.stderr
+++ b/src/test/ui/expr/if/bad-if-let-suggestion.stderr
@@ -62,6 +62,11 @@ error[E0308]: mismatched types
    |
 LL |     if let x = 1 && i = 2 {}
    |        ^^^^^^^^^^^^^^^^^^ expected `bool`, found `()`
+   |
+help: you might have meant to compare for equality
+   |
+LL |     if let x = 1 && i == 2 {}
+   |                        +
 
 error: aborting due to 8 previous errors