We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2343712 commit 88ad229Copy full SHA for 88ad229
src/test/compile-fail/issue-29124.rs
@@ -25,7 +25,11 @@ fn main() {
25
obj::func.x();
26
//~^ ERROR no method named `x` found for type `fn() -> ret {obj::func}` in the current scope
27
//~^^ NOTE obj::func is a function, perhaps you wish to call it
28
+ //~^^^ HELP try calling the base function:
29
+ //~| SUGGESTION obj::func().x();
30
func.x();
31
//~^ ERROR no method named `x` found for type `fn() -> ret {func}` in the current scope
32
//~^^ NOTE func is a function, perhaps you wish to call it
33
34
+ //~| SUGGESTION func().x();
35
}
0 commit comments