fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.2 KiB47 linesraw
1error[E0061]: this function takes 4 arguments but 3 arguments were supplied
2  --> $DIR/not-enough-arguments.rs:27:3
3   |
4LL |   foo(1, 2, 3);
5   |   ^^^--------- an argument of type `isize` is missing
6   |
7note: function defined here
8  --> $DIR/not-enough-arguments.rs:5:4
9   |
10LL | fn foo(a: isize, b: isize, c: isize, d:isize) {
11   |    ^^^ --------  --------  --------  -------
12help: provide the argument
13   |
14LL |   foo(1, 2, 3, /* isize */);
15   |      ~~~~~~~~~~~~~~~~~~~~~~
16
17error[E0061]: this function takes 6 arguments but 3 arguments were supplied
18  --> $DIR/not-enough-arguments.rs:29:3
19   |
20LL |   bar(1, 2, 3);
21   |   ^^^--------- three arguments of type `i32`, `i32`, and `i32` are missing
22   |
23note: function defined here
24  --> $DIR/not-enough-arguments.rs:10:4
25   |
26LL | fn bar(
27   |    ^^^
28LL |     a: i32,
29   |     ------
30LL |     b: i32,
31   |     ------
32LL |     c: i32,
33   |     ------
34LL |     d: i32,
35   |     ------
36LL |     e: i32,
37   |     ------
38LL |     f: i32,
39   |     ------
40help: provide the arguments
41   |
42LL |   bar(1, 2, 3, /* i32 */, /* i32 */, /* i32 */);
43   |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
44
45error: aborting due to 2 previous errors
46
47For more information about this error, try `rustc --explain E0061`.