summaryrefslogtreecommitdiffstats
path: root/src/test/ui/fn/fn-compare-mismatch.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/fn/fn-compare-mismatch.stderr')
-rw-r--r--src/test/ui/fn/fn-compare-mismatch.stderr10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/test/ui/fn/fn-compare-mismatch.stderr b/src/test/ui/fn/fn-compare-mismatch.stderr
index 096440225..df838cb11 100644
--- a/src/test/ui/fn/fn-compare-mismatch.stderr
+++ b/src/test/ui/fn/fn-compare-mismatch.stderr
@@ -6,14 +6,10 @@ LL | let x = f == g;
| |
| fn() {f}
|
-help: you might have forgotten to call this function
+help: use parentheses to call these
|
-LL | let x = f() == g;
- | ++
-help: you might have forgotten to call this function
- |
-LL | let x = f == g();
- | ++
+LL | let x = f() == g();
+ | ++ ++
error[E0308]: mismatched types
--> $DIR/fn-compare-mismatch.rs:4:18