Skip to main content

method_arity_error

Function method_arity_error 

Source
pub fn method_arity_error(
    class: &str,
    method: &str,
    min: usize,
    max: Option<usize>,
    got: usize,
) -> DogeError
Expand description

The error a method call raises when the argument count is wrong, worded like the compiler’s user-function arity message. max is None when the method is variadic.