Add Help and Suggestion to issue-29124 tests

This commit is contained in:
Daniel J Rollins 2016-03-06 15:47:05 +00:00 committed by Manish Goregaokar
parent 234371216e
commit 88ad22998b

View File

@ -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();
}