about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2016-05-03 01:02:44 +0530
committerManish Goregaokar <manishsmail@gmail.com>2016-05-03 08:05:28 +0530
commit0ee84c71fc62ed90e2ff13042b356bdd0fb501f5 (patch)
treec18b5f623d2d0ef2a3f56a310988cc0c31fd4a39 /src/test
parent68c29e09044c5c5a2072fe113eca99099414a705 (diff)
parentffba7b7254f9b828cf173ed066ba2d69b8831cd8 (diff)
downloadrust-0ee84c71fc62ed90e2ff13042b356bdd0fb501f5.tar.gz
rust-0ee84c71fc62ed90e2ff13042b356bdd0fb501f5.zip
Rollup merge of #33325 - birkenfeld:issue-31341, r=jseyfried
typeck: remove confusing suggestion for calling a fn type

* It is not clear what a "base function" is.
* The suggestion just adds parens, so suggests calling without args.

The second point could be fixed with e.g. `(...)` instead of `()`,
but the preceding "note: X is a function, perhaps you wish to call it"
should already be clear enough.

Fixes: #31341
Diffstat (limited to 'src/test')
-rw-r--r--src/test/compile-fail/issue-29124.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/test/compile-fail/issue-29124.rs b/src/test/compile-fail/issue-29124.rs
index b3dc043f502..a72dac0d5dd 100644
--- a/src/test/compile-fail/issue-29124.rs
+++ b/src/test/compile-fail/issue-29124.rs
@@ -25,11 +25,7 @@ fn main() {
     obj::func.x();
     //~^ ERROR no method named `x` found for type `fn() -> ret {obj::func}` in the current scope
     //~^^ NOTE obj::func is a function, perhaps you wish to call it
-    //~^^^ HELP try calling the base function:
-    //~| SUGGESTION obj::func().x();
     func.x();
     //~^ ERROR no method named `x` found for type `fn() -> ret {func}` in the current scope
     //~^^ NOTE func is a function, perhaps you wish to call it
-    //~^^^ HELP try calling the base function:
-    //~| SUGGESTION func().x();
 }