diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2019-04-17 14:37:50 -0700 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2019-04-17 14:37:52 -0700 |
| commit | 8f77a035a43158d6d997d6c71e36e4a2c7eb7336 (patch) | |
| tree | 62b5313f6424af16df0f1e200be088a00a014af6 /src/test | |
| parent | 70f130954d6fd36fe3e77f4b5b33e5af50489288 (diff) | |
| download | rust-8f77a035a43158d6d997d6c71e36e4a2c7eb7336.tar.gz rust-8f77a035a43158d6d997d6c71e36e4a2c7eb7336.zip | |
Do not mention missing `PartialOrd` impl when involving uncalled fns
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/ui/fn/fn-compare-mismatch.stderr | 2 | ||||
| -rw-r--r-- | src/test/ui/issues/issue-59488.rs | 14 | ||||
| -rw-r--r-- | src/test/ui/issues/issue-59488.stderr | 6 |
3 files changed, 7 insertions, 15 deletions
diff --git a/src/test/ui/fn/fn-compare-mismatch.stderr b/src/test/ui/fn/fn-compare-mismatch.stderr index 74fb00f8ac3..c64070a2022 100644 --- a/src/test/ui/fn/fn-compare-mismatch.stderr +++ b/src/test/ui/fn/fn-compare-mismatch.stderr @@ -5,8 +5,6 @@ LL | let x = f == g; | - ^^ - fn() {main::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; diff --git a/src/test/ui/issues/issue-59488.rs b/src/test/ui/issues/issue-59488.rs index 27cf16a821f..d5fab0a6f9b 100644 --- a/src/test/ui/issues/issue-59488.rs +++ b/src/test/ui/issues/issue-59488.rs @@ -10,17 +10,17 @@ fn bar(a: i64) -> i64 { fn main() { foo > 12; - //~^ ERROR 12:9: 12:10: binary operation `>` cannot be applied to type `fn() -> i32 {foo}` [E0369] - //~| ERROR 12:11: 12:13: mismatched types [E0308] + //~^ ERROR binary operation `>` cannot be applied to type `fn() -> i32 {foo}` [E0369] + //~| ERROR mismatched types [E0308] bar > 13; - //~^ ERROR 16:9: 16:10: binary operation `>` cannot be applied to type `fn(i64) -> i64 {bar}` [E0369] - //~| ERROR 16:11: 16:13: mismatched types [E0308] + //~^ ERROR binary operation `>` cannot be applied to type `fn(i64) -> i64 {bar}` [E0369] + //~| ERROR mismatched types [E0308] foo > foo; - //~^ ERROR 20:9: 20:10: binary operation `>` cannot be applied to type `fn() -> i32 {foo}` [E0369] + //~^ ERROR binary operation `>` cannot be applied to type `fn() -> i32 {foo}` [E0369] foo > bar; - //~^ ERROR 23:9: 23:10: binary operation `>` cannot be applied to type `fn() -> i32 {foo}` [E0369] - //~| ERROR 23:11: 23:14: mismatched types [E0308] + //~^ ERROR binary operation `>` cannot be applied to type `fn() -> i32 {foo}` [E0369] + //~| ERROR mismatched types [E0308] } diff --git a/src/test/ui/issues/issue-59488.stderr b/src/test/ui/issues/issue-59488.stderr index b49f5e35f42..615adb36d33 100644 --- a/src/test/ui/issues/issue-59488.stderr +++ b/src/test/ui/issues/issue-59488.stderr @@ -6,8 +6,6 @@ LL | foo > 12; | | | fn() -> i32 {foo} | help: you might have forgotten to call this function: `foo()` - | - = note: an implementation of `std::cmp::PartialOrd` might be missing for `fn() -> i32 {foo}` error[E0308]: mismatched types --> $DIR/issue-59488.rs:12:11 @@ -26,8 +24,6 @@ LL | bar > 13; | | | fn(i64) -> i64 {bar} | help: you might have forgotten to call this function: `bar( /* arguments */ )` - | - = note: an implementation of `std::cmp::PartialOrd` might be missing for `fn(i64) -> i64 {bar}` error[E0308]: mismatched types --> $DIR/issue-59488.rs:16:11 @@ -45,8 +41,6 @@ LL | foo > foo; | --- ^ --- fn() -> i32 {foo} | | | fn() -> i32 {foo} - | - = note: an implementation of `std::cmp::PartialOrd` might be missing for `fn() -> i32 {foo}` help: you might have forgotten to call this function | LL | foo() > foo; |
