Workaround compiler ICE.
-
rustc sometimes throws an internal compiler error when closures are passed as arguments.
-
Using functions instead of closures works around this issue.
rustc sometimes throws an internal compiler error when closures are passed as arguments.
Using functions instead of closures works around this issue.