Closed
Description
https://gist.github.com/654a2ffb1b6a0a50ffb0
Should compile and run as expected -- but commenting out the (unused!) 'wrapper' fn produces:
rust: ../rust/src/test/run-pass/obj-self-4.rs:11:19:11:26: error: mismatched types: expected fn(int) -> but found fn() -> int (incorrect number of function parameters)
11:19:11:26 is the call to 'inc_by' inside 'inc_by_5'.
Metadata
Metadata
Assignees
Labels
No labels