2023-03-30 17:09:24 +00:00
|
|
|
error[E0061]: this function takes 0 arguments but 2 arguments were supplied
|
2023-03-30 17:11:06 +00:00
|
|
|
--> $DIR/issue-109425.rs:10:5
|
2023-03-30 17:09:24 +00:00
|
|
|
|
|
|
|
|
LL | f(0, 1,); // f()
|
|
|
|
| ^ - - unexpected argument of type `{integer}`
|
|
|
|
| |
|
|
|
|
| unexpected argument of type `{integer}`
|
|
|
|
|
|
|
|
|
note: function defined here
|
2023-03-30 17:11:06 +00:00
|
|
|
--> $DIR/issue-109425.rs:3:4
|
2023-03-30 17:09:24 +00:00
|
|
|
|
|
|
|
|
LL | fn f() {}
|
|
|
|
| ^
|
|
|
|
help: remove the extra arguments
|
|
|
|
|
|
|
|
|
LL - f(0, 1,); // f()
|
2023-03-30 17:11:06 +00:00
|
|
|
LL + f(); // f()
|
2023-03-30 17:09:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
error[E0061]: this function takes 1 argument but 3 arguments were supplied
|
2023-03-30 17:11:06 +00:00
|
|
|
--> $DIR/issue-109425.rs:12:5
|
2023-03-30 17:09:24 +00:00
|
|
|
|
|
|
|
|
LL | i(0, 1, 2,); // i(0,)
|
|
|
|
| ^ - - unexpected argument of type `{integer}`
|
|
|
|
| |
|
|
|
|
| unexpected argument of type `{integer}`
|
|
|
|
|
|
|
|
|
note: function defined here
|
2023-03-30 17:11:06 +00:00
|
|
|
--> $DIR/issue-109425.rs:4:4
|
2023-03-30 17:09:24 +00:00
|
|
|
|
|
|
|
|
LL | fn i(_: u32) {}
|
|
|
|
| ^ ------
|
|
|
|
help: remove the extra arguments
|
|
|
|
|
|
|
|
|
LL - i(0, 1, 2,); // i(0,)
|
|
|
|
LL + i(0,); // i(0,)
|
|
|
|
|
|
|
|
|
|
|
|
|
error[E0061]: this function takes 1 argument but 3 arguments were supplied
|
2023-03-30 17:11:06 +00:00
|
|
|
--> $DIR/issue-109425.rs:14:5
|
2023-03-30 17:09:24 +00:00
|
|
|
|
|
|
|
|
LL | i(0, 1, 2); // i(0)
|
|
|
|
| ^ - - unexpected argument of type `{integer}`
|
|
|
|
| |
|
|
|
|
| unexpected argument of type `{integer}`
|
|
|
|
|
|
|
|
|
note: function defined here
|
2023-03-30 17:11:06 +00:00
|
|
|
--> $DIR/issue-109425.rs:4:4
|
2023-03-30 17:09:24 +00:00
|
|
|
|
|
|
|
|
LL | fn i(_: u32) {}
|
|
|
|
| ^ ------
|
|
|
|
help: remove the extra arguments
|
|
|
|
|
|
|
|
|
LL - i(0, 1, 2); // i(0)
|
|
|
|
LL + i(0); // i(0)
|
|
|
|
|
|
|
|
|
|
|
|
|
error[E0061]: this function takes 2 arguments but 4 arguments were supplied
|
2023-03-30 17:11:06 +00:00
|
|
|
--> $DIR/issue-109425.rs:16:5
|
2023-03-30 17:09:24 +00:00
|
|
|
|
|
|
|
|
LL | is(0, 1, 2, ""); // is(0, "")
|
|
|
|
| ^^ - - unexpected argument of type `{integer}`
|
|
|
|
| |
|
|
|
|
| unexpected argument of type `{integer}`
|
|
|
|
|
|
|
|
|
note: function defined here
|
2023-03-30 17:11:06 +00:00
|
|
|
--> $DIR/issue-109425.rs:5:4
|
2023-03-30 17:09:24 +00:00
|
|
|
|
|
|
|
|
LL | fn is(_: u32, _: &str) {}
|
|
|
|
| ^^ ------ -------
|
|
|
|
help: remove the extra arguments
|
|
|
|
|
|
|
|
|
LL - is(0, 1, 2, ""); // is(0, "")
|
|
|
|
LL + is(0, ""); // is(0, "")
|
|
|
|
|
|
|
|
|
|
|
|
|
error[E0061]: this function takes 1 argument but 3 arguments were supplied
|
2023-03-30 17:11:06 +00:00
|
|
|
--> $DIR/issue-109425.rs:18:5
|
2023-03-30 17:09:24 +00:00
|
|
|
|
|
|
|
|
LL | s(0, 1, ""); // s("")
|
|
|
|
| ^ - - unexpected argument of type `{integer}`
|
|
|
|
| |
|
|
|
|
| unexpected argument of type `{integer}`
|
|
|
|
|
|
|
|
|
note: function defined here
|
2023-03-30 17:11:06 +00:00
|
|
|
--> $DIR/issue-109425.rs:6:4
|
2023-03-30 17:09:24 +00:00
|
|
|
|
|
|
|
|
LL | fn s(_: &str) {}
|
|
|
|
| ^ -------
|
|
|
|
help: remove the extra arguments
|
|
|
|
|
|
|
|
|
LL - s(0, 1, ""); // s("")
|
2023-03-30 17:11:06 +00:00
|
|
|
LL + s(""); // s("")
|
2023-03-30 17:09:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
error: aborting due to 5 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0061`.
|