2020-02-05 21:08:07 -08:00
|
|
|
error[E0061]: this function takes 1 argument but 2 arguments were supplied
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/issue-4935.rs:5:13
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | fn main() { foo(5, 6) }
|
2023-02-01 17:44:48 +00:00
|
|
|
| ^^^ ---
|
|
|
|
| | |
|
|
|
|
| | unexpected argument of type `{integer}`
|
|
|
|
| help: remove the extra argument
|
2020-09-23 22:43:32 -04:00
|
|
|
|
|
|
|
|
note: function defined here
|
|
|
|
--> $DIR/issue-4935.rs:3:4
|
|
|
|
|
|
|
|
|
LL | fn foo(a: usize) {}
|
|
|
|
| ^^^ --------
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-03-03 15:59:40 +01:00
|
|
|
For more information about this error, try `rustc --explain E0061`.
|