Improve E0061 long error explanation
This commit is contained in:
parent
f798804cd9
commit
9bb2e3cd34
1 changed files with 10 additions and 0 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue