@@ -52,7 +52,7 @@ LL | <$from>::$method(8, /* u8 */)
5252 | ++++++++++
5353
5454error[E0061]: this function takes 4 arguments but 3 arguments were supplied
55- --> $DIR/fn-arg-count-mismatch-diagnostics.rs:50 :5
55+ --> $DIR/fn-arg-count-mismatch-diagnostics.rs:52 :5
5656 |
5757LL | foo(1, 2, 3);
5858 | ^^^--------- argument #4 of type `isize` is missing
@@ -68,7 +68,7 @@ LL | foo(1, 2, 3, /* isize */);
6868 | +++++++++++++
6969
7070error[E0061]: this function takes 6 arguments but 3 arguments were supplied
71- --> $DIR/fn-arg-count-mismatch-diagnostics.rs:52 :5
71+ --> $DIR/fn-arg-count-mismatch-diagnostics.rs:54 :5
7272 |
7373LL | bar(1, 2, 3);
7474 | ^^^--------- three arguments of type `i32`, `i32`, and `i32` are missing
@@ -83,6 +83,32 @@ help: provide the arguments
8383LL | bar(1, 2, 3, /* i32 */, /* i32 */, /* i32 */);
8484 | +++++++++++++++++++++++++++++++++
8585
86- error: aborting due to 5 previous errors
86+ error[E0061]: this function takes 6 arguments but 5 arguments were supplied
87+ --> $DIR/fn-arg-count-mismatch-diagnostics.rs:58:5
88+ |
89+ LL | function_with_lots_of_arguments(
90+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
91+ LL | variable_name,
92+ LL | variable_name,
93+ | ------------- argument #2 of type `char` is missing
94+ |
95+ note: function defined here
96+ --> $DIR/fn-arg-count-mismatch-diagnostics.rs:49:4
97+ |
98+ LL | fn function_with_lots_of_arguments(a: i32, b: char, c: i32, d: i32, e: i32, f: i32) {}
99+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -------
100+ help: provide the argument
101+ |
102+ LL - function_with_lots_of_arguments(
103+ LL - variable_name,
104+ LL - variable_name,
105+ LL - variable_name,
106+ LL - variable_name,
107+ LL - variable_name,
108+ LL - );
109+ LL + function_with_lots_of_arguments(variable_name, /* char */, variable_name, variable_name, variable_name, variable_name);
110+ |
111+
112+ error: aborting due to 6 previous errors
87113
88114For more information about this error, try `rustc --explain E0061`.
0 commit comments