Skip to content

Commit

Permalink
Add Help and Suggestion to issue-29124 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel J Rollins authored and Manishearth committed Mar 19, 2016
1 parent 2343712 commit 88ad229
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/test/compile-fail/issue-29124.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

0 comments on commit 88ad229

Please sign in to comment.