diff options
| author | rchaser53 <tayoshizawa29@gmail.com> | 2019-04-12 22:59:30 +0900 |
|---|---|---|
| committer | rchaser53 <tayoshizawa29@gmail.com> | 2019-04-12 23:57:06 +0900 |
| commit | d01ac0d61e31ffdff0a85a76de6f4449935b5a6b (patch) | |
| tree | 9ae790562e9ba2c72bdefec39005a07cee8bac3a /src/test/ui/fn | |
| parent | 199b0bad3c233ba5bec8895efe6c8888c9ce5bee (diff) | |
| download | rust-d01ac0d61e31ffdff0a85a76de6f4449935b5a6b.tar.gz rust-d01ac0d61e31ffdff0a85a76de6f4449935b5a6b.zip | |
add the logic for when other_ty is FnDef
Diffstat (limited to 'src/test/ui/fn')
| -rw-r--r-- | src/test/ui/fn/fn-compare-mismatch.stderr | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/fn/fn-compare-mismatch.stderr b/src/test/ui/fn/fn-compare-mismatch.stderr index 07b93d9aae7..74fb00f8ac3 100644 --- a/src/test/ui/fn/fn-compare-mismatch.stderr +++ b/src/test/ui/fn/fn-compare-mismatch.stderr @@ -7,6 +7,14 @@ LL | let x = f == g; | fn() {main::f} | = note: an implementation of `std::cmp::PartialEq` might be missing for `fn() {main::f}` +help: you might have forgotten to call this function + | +LL | let x = f() == g; + | ^^^ +help: you might have forgotten to call this function + | +LL | let x = f == g(); + | ^^^ error[E0308]: mismatched types --> $DIR/fn-compare-mismatch.rs:4:18 |
