S0013: function argument count mismatch
Generated from rellum-diagnostics/src/db.rs.
Explanation
Calls must provide exactly the number of arguments required by the callee. This applies to named functions, generic function instantiations, lambda values, and function-typed values.
Common causes
- calling a function with too many or too few arguments
- calling a generic function with the right type arguments but the wrong value arguments
- calling a function value whose input type is not shaped like the provided arguments
Canonical fixes
- match the callee's parameter list
Before:
sum = add(1)
After:
sum = add(1, 2)
- wrap multiple values in the shape expected by the function value
Code example
sum = add(1)