2020-02-06 05:08:07 +00:00
|
|
|
error[E0061]: this function takes 2 arguments but 1 argument was supplied
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/E0061.rs:6:5
|
2018-02-08 03:35:35 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | f(0);
|
2020-02-06 05:08:07 +00:00
|
|
|
| ^ - supplied 1 argument
|
|
|
|
| |
|
|
|
|
| expected 2 arguments
|
2020-09-24 02:43:32 +00:00
|
|
|
|
|
|
|
|
note: function defined here
|
|
|
|
--> $DIR/E0061.rs:1:4
|
|
|
|
|
|
|
|
|
LL | fn f(a: u16, b: &str) {}
|
|
|
|
| ^ ------ -------
|
2018-02-08 03:35:35 +00:00
|
|
|
|
2020-02-06 05:08:07 +00:00
|
|
|
error[E0061]: this function takes 1 argument but 0 arguments were supplied
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/E0061.rs:10:5
|
2018-02-08 03:35:35 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | f2();
|
2020-02-06 05:08:07 +00:00
|
|
|
| ^^-- supplied 0 arguments
|
|
|
|
| |
|
|
|
|
| expected 1 argument
|
2020-09-24 02:43:32 +00:00
|
|
|
|
|
|
|
|
note: function defined here
|
|
|
|
--> $DIR/E0061.rs:3:4
|
|
|
|
|
|
|
|
|
LL | fn f2(a: u16) {}
|
|
|
|
| ^^ ------
|
2018-02-08 03:35:35 +00:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
2018-03-03 14:59:40 +00:00
|
|
|
For more information about this error, try `rustc --explain E0061`.
|