Error code E0057
An invalid number of arguments was given when calling a closure.
Erroneous code example:
ⓘ
When invoking closures or other implementations of the function traits Fn
,
FnMut
or FnOnce
using call notation, the number of parameters passed to the
function must match its definition.
A generic function must be treated similarly: