diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2019-11-22 13:34:52 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2019-11-22 19:14:09 +0100 |
| commit | 9bb2e3cd3419b14f68b29f214bfa7776409c5403 (patch) | |
| tree | 08bd7c53a7918cce220a349e7104845f9e3cf89c | |
| parent | f798804cd9612daa324c93d911eae00fa1775597 (diff) | |
| download | rust-9bb2e3cd3419b14f68b29f214bfa7776409c5403.tar.gz rust-9bb2e3cd3419b14f68b29f214bfa7776409c5403.zip | |
Improve E0061 long error explanation
| -rw-r--r-- | src/librustc_error_codes/error_codes/E0061.md | 10 |
1 files changed, 10 insertions, 0 deletions
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. |
