Compiler can infer variables to capture in closures (maybe?)