match input_string {
func_that_returns_string(MyEnum::MyVariant1) => do_something(),
func_that_returns_string(MyEnum::MyVariant2) => do_something_else(),
_=> do_nothing(),
}
Here is an examples of the error message:
Error: expected tuple struct or tuple variant, found function func_that_returns_string