I'm trying to pass a closure to a function, and am struggling to get it to compile - I've tried lots of different things, but the furthest I've gotten is a single error about missing type annotations.
I've managed to reduce my issue down to a simple example - any help would be appreciated!