Skip to content

Commit 9bb2e3c

Browse files
Improve E0061 long error explanation
1 parent f798804 commit 9bb2e3c

File tree

1 file changed

+10
-0
lines changed
  • src/librustc_error_codes/error_codes

1 file changed

+10
-0
lines changed

src/librustc_error_codes/error_codes/E0061.md

+10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
An invalid number of arguments was passed when calling a function.
2+
3+
Erroneous code example:
4+
5+
```compile_fail,E0061
6+
fn f(u: i32) {}
7+
8+
f(); // error!
9+
```
10+
111
The number of arguments passed to a function must match the number of arguments
212
specified in the function signature.
313

0 commit comments

Comments
 (0)