rust · rust/E0434
E0434
Inner Function Captures Environment
An inner function defined with fn attempts to access variables from its enclosing scope, which is not permitted. Use a closure instead of an inner fn to capture the surrounding environment.