From 9bb2e3cd3419b14f68b29f214bfa7776409c5403 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Fri, 22 Nov 2019 13:34:52 +0100 Subject: Improve E0061 long error explanation --- src/librustc_error_codes/error_codes/E0061.md | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/librustc_error_codes/error_codes') diff --git a/src/librustc_error_codes/error_codes/E0061.md b/src/librustc_error_codes/error_codes/E0061.md index 3386dff2c85..143251c13b0 100644 --- a/src/librustc_error_codes/error_codes/E0061.md +++ b/src/librustc_error_codes/error_codes/E0061.md @@ -1,3 +1,13 @@ +An invalid number of arguments was passed when calling a function. + +Erroneous code example: + +```compile_fail,E0061 +fn f(u: i32) {} + +f(); // error! +``` + The number of arguments passed to a function must match the number of arguments specified in the function signature. -- cgit 1.4.1-3-g733a5