Improve error message

This commit is contained in:
Pranav Gaddamadugu 2023-04-06 13:25:19 -07:00
parent f9851e1b97
commit 55c0665c39

View File

@ -202,8 +202,8 @@ create_messages!(
/// Parsed an unknown method call on the type of an expression. /// Parsed an unknown method call on the type of an expression.
@formatted @formatted
invalid_method_call { invalid_method_call {
args: (expr: impl Display, func: impl Display), args: (expr: impl Display, func: impl Display, num_args: impl Display),
msg: format!("The type of `{expr}` has no associated function `{func}`"), msg: format!("The type of `{expr}` has no associated function `{func}` that takes {num_args} argument(s)."),
help: None, help: None,
} }