From 88ad22998bc3cf22c28273756f48c169910bfad5 Mon Sep 17 00:00:00 2001 From: Daniel J Rollins Date: Sun, 6 Mar 2016 15:47:05 +0000 Subject: [PATCH] Add Help and Suggestion to issue-29124 tests --- src/test/compile-fail/issue-29124.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/test/compile-fail/issue-29124.rs b/src/test/compile-fail/issue-29124.rs index a72dac0d5dd..b3dc043f502 100644 --- a/src/test/compile-fail/issue-29124.rs +++ b/src/test/compile-fail/issue-29124.rs @@ -25,7 +25,11 @@ 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(); }