@@ -52,7 +52,7 @@ LL | <$from>::$method(8, /* u8 */)
52
52
| ++++++++++
53
53
54
54
error[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
56
56
|
57
57
LL | foo(1, 2, 3);
58
58
| ^^^--------- argument #4 of type `isize` is missing
@@ -68,7 +68,7 @@ LL | foo(1, 2, 3, /* isize */);
68
68
| +++++++++++++
69
69
70
70
error[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
72
72
|
73
73
LL | bar(1, 2, 3);
74
74
| ^^^--------- three arguments of type `i32`, `i32`, and `i32` are missing
@@ -83,6 +83,32 @@ help: provide the arguments
83
83
LL | bar(1, 2, 3, /* i32 */, /* i32 */, /* i32 */);
84
84
| +++++++++++++++++++++++++++++++++
85
85
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
87
113
88
114
For more information about this error, try `rustc --explain E0061`.
0 commit comments