Matching on a function causes "found structure or enum pattern" #12863
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
This should be complaining about mismatched types.
(The module is necessary to force the compiler search/use the function; with just
bar => {}
it takesbar
to be a variable binding.)The text was updated successfully, but these errors were encountered: