Add Help and Suggestion to issue-29124 tests
This commit is contained in:
parent
234371216e
commit
88ad22998b
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user