Skip to content

Commit 88ad229

Browse files
Daniel J RollinsManishearth
Daniel J Rollins
authored andcommitted
Add Help and Suggestion to issue-29124 tests
1 parent 2343712 commit 88ad229

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/test/compile-fail/issue-29124.rs

+4
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ fn main() {
2525
obj::func.x();
2626
//~^ ERROR no method named `x` found for type `fn() -> ret {obj::func}` in the current scope
2727
//~^^ NOTE obj::func is a function, perhaps you wish to call it
28+
//~^^^ HELP try calling the base function:
29+
//~| SUGGESTION obj::func().x();
2830
func.x();
2931
//~^ ERROR no method named `x` found for type `fn() -> ret {func}` in the current scope
3032
//~^^ NOTE func is a function, perhaps you wish to call it
33+
//~^^^ HELP try calling the base function:
34+
//~| SUGGESTION func().x();
3135
}

0 commit comments

Comments
 (0)