@@ -2,52 +2,46 @@ error[E0061]: this function takes 0 arguments but 1 argument was supplied
22 --> $DIR/extra_arguments.rs:7:3
33 |
44LL | empty("");
5- | ^^^^^ -- unexpected argument of type `&'static str`
5+ | ^^^^^ --
6+ | |
7+ | unexpected argument of type `&'static str`
8+ | help: remove the extra argument
69 |
710note: function defined here
811 --> $DIR/extra_arguments.rs:1:4
912 |
1013LL | fn empty() {}
1114 | ^^^^^
12- help: remove the extra argument
13- |
14- LL - empty("");
15- LL + empty();
16- |
1715
1816error[E0061]: this function takes 1 argument but 2 arguments were supplied
1917 --> $DIR/extra_arguments.rs:9:3
2018 |
2119LL | one_arg(1, 1);
22- | ^^^^^^^ - unexpected argument of type `{integer}`
20+ | ^^^^^^^ ---
21+ | | |
22+ | | unexpected argument of type `{integer}`
23+ | help: remove the extra argument
2324 |
2425note: function defined here
2526 --> $DIR/extra_arguments.rs:2:4
2627 |
2728LL | fn one_arg(_a: i32) {}
2829 | ^^^^^^^ -------
29- help: remove the extra argument
30- |
31- LL - one_arg(1, 1);
32- LL + one_arg(1);
33- |
3430
3531error[E0061]: this function takes 1 argument but 2 arguments were supplied
3632 --> $DIR/extra_arguments.rs:10:3
3733 |
3834LL | one_arg(1, "");
39- | ^^^^^^^ -- unexpected argument of type `&'static str`
35+ | ^^^^^^^ ----
36+ | | |
37+ | | unexpected argument of type `&'static str`
38+ | help: remove the extra argument
4039 |
4140note: function defined here
4241 --> $DIR/extra_arguments.rs:2:4
4342 |
4443LL | fn one_arg(_a: i32) {}
4544 | ^^^^^^^ -------
46- help: remove the extra argument
47- |
48- LL - one_arg(1, "");
49- LL + one_arg(1);
50- |
5145
5246error[E0061]: this function takes 1 argument but 3 arguments were supplied
5347 --> $DIR/extra_arguments.rs:11:3
@@ -72,69 +66,61 @@ error[E0061]: this function takes 2 arguments but 3 arguments were supplied
7266 --> $DIR/extra_arguments.rs:13:3
7367 |
7468LL | two_arg_same(1, 1, 1);
75- | ^^^^^^^^^^^^ - unexpected argument of type `{integer}`
69+ | ^^^^^^^^^^^^ ---
70+ | | |
71+ | | unexpected argument of type `{integer}`
72+ | help: remove the extra argument
7673 |
7774note: function defined here
7875 --> $DIR/extra_arguments.rs:3:4
7976 |
8077LL | fn two_arg_same(_a: i32, _b: i32) {}
8178 | ^^^^^^^^^^^^ ------- -------
82- help: remove the extra argument
83- |
84- LL - two_arg_same(1, 1, 1);
85- LL + two_arg_same(1, 1);
86- |
8779
8880error[E0061]: this function takes 2 arguments but 3 arguments were supplied
8981 --> $DIR/extra_arguments.rs:14:3
9082 |
9183LL | two_arg_same(1, 1, 1.0);
92- | ^^^^^^^^^^^^ --- unexpected argument of type `{float}`
84+ | ^^^^^^^^^^^^ -----
85+ | | |
86+ | | unexpected argument of type `{float}`
87+ | help: remove the extra argument
9388 |
9489note: function defined here
9590 --> $DIR/extra_arguments.rs:3:4
9691 |
9792LL | fn two_arg_same(_a: i32, _b: i32) {}
9893 | ^^^^^^^^^^^^ ------- -------
99- help: remove the extra argument
100- |
101- LL - two_arg_same(1, 1, 1.0);
102- LL + two_arg_same(1, 1);
103- |
10494
10595error[E0061]: this function takes 2 arguments but 3 arguments were supplied
10696 --> $DIR/extra_arguments.rs:16:3
10797 |
10898LL | two_arg_diff(1, 1, "");
109- | ^^^^^^^^^^^^ - unexpected argument of type `{integer}`
99+ | ^^^^^^^^^^^^ ---
100+ | | |
101+ | | unexpected argument of type `{integer}`
102+ | help: remove the extra argument
110103 |
111104note: function defined here
112105 --> $DIR/extra_arguments.rs:4:4
113106 |
114107LL | fn two_arg_diff(_a: i32, _b: &str) {}
115108 | ^^^^^^^^^^^^ ------- --------
116- help: remove the extra argument
117- |
118- LL - two_arg_diff(1, 1, "");
119- LL + two_arg_diff(1, "");
120- |
121109
122110error[E0061]: this function takes 2 arguments but 3 arguments were supplied
123111 --> $DIR/extra_arguments.rs:17:3
124112 |
125113LL | two_arg_diff(1, "", "");
126- | ^^^^^^^^^^^^ -- unexpected argument of type `&'static str`
114+ | ^^^^^^^^^^^^ ----
115+ | | |
116+ | | unexpected argument of type `&'static str`
117+ | help: remove the extra argument
127118 |
128119note: function defined here
129120 --> $DIR/extra_arguments.rs:4:4
130121 |
131122LL | fn two_arg_diff(_a: i32, _b: &str) {}
132123 | ^^^^^^^^^^^^ ------- --------
133- help: remove the extra argument
134- |
135- LL - two_arg_diff(1, "", "");
136- LL + two_arg_diff(1, "");
137- |
138124
139125error[E0061]: this function takes 2 arguments but 4 arguments were supplied
140126 --> $DIR/extra_arguments.rs:18:3
@@ -178,75 +164,70 @@ error[E0061]: this function takes 2 arguments but 3 arguments were supplied
178164 --> $DIR/extra_arguments.rs:22:3
179165 |
180166LL | two_arg_same(1, 1, "");
181- | ^^^^^^^^^^^^ -- unexpected argument of type `&'static str`
167+ | ^^^^^^^^^^^^ --------
168+ | | |
169+ | | unexpected argument of type `&'static str`
170+ | help: remove the extra argument
182171 |
183172note: function defined here
184173 --> $DIR/extra_arguments.rs:3:4
185174 |
186175LL | fn two_arg_same(_a: i32, _b: i32) {}
187176 | ^^^^^^^^^^^^ ------- -------
188- help: remove the extra argument
189- |
190- LL - two_arg_same(1, 1, "");
191- LL + two_arg_same(1, 1);
192- |
193177
194178error[E0061]: this function takes 2 arguments but 3 arguments were supplied
195179 --> $DIR/extra_arguments.rs:23:3
196180 |
197181LL | two_arg_diff(1, 1, "");
198- | ^^^^^^^^^^^^ - unexpected argument of type `{integer}`
182+ | ^^^^^^^^^^^^ ---
183+ | | |
184+ | | unexpected argument of type `{integer}`
185+ | help: remove the extra argument
199186 |
200187note: function defined here
201188 --> $DIR/extra_arguments.rs:4:4
202189 |
203190LL | fn two_arg_diff(_a: i32, _b: &str) {}
204191 | ^^^^^^^^^^^^ ------- --------
205- help: remove the extra argument
206- |
207- LL - two_arg_diff(1, 1, "");
208- LL + two_arg_diff(1, "");
209- |
210192
211193error[E0061]: this function takes 2 arguments but 3 arguments were supplied
212194 --> $DIR/extra_arguments.rs:24:3
213195 |
214- LL | two_arg_same(
215- | ^^^^^^^^^^^^
216- ...
217- LL | ""
218- | -- unexpected argument of type `&'static str`
196+ LL | two_arg_same(
197+ | ^^^^^^^^^^^^
198+ LL | 1,
199+ LL | 1,
200+ | ______-
201+ LL | | ""
202+ | | --
203+ | |_____||
204+ | |help: remove the extra argument
205+ | unexpected argument of type `&'static str`
219206 |
220207note: function defined here
221208 --> $DIR/extra_arguments.rs:3:4
222209 |
223210LL | fn two_arg_same(_a: i32, _b: i32) {}
224211 | ^^^^^^^^^^^^ ------- -------
225- help: remove the extra argument
226- |
227- LL - 1,
228- LL + 1
229- |
230212
231213error[E0061]: this function takes 2 arguments but 3 arguments were supplied
232214 --> $DIR/extra_arguments.rs:30:3
233215 |
234- LL | two_arg_diff(
235- | ^^^^^^^^^^^^
236- LL | 1,
237- LL | 1,
238- | - unexpected argument of type `{integer}`
216+ LL | two_arg_diff(
217+ | ^^^^^^^^^^^^
218+ LL | 1,
219+ | ______-
220+ LL | | 1,
221+ | | -
222+ | | |
223+ | |_____unexpected argument of type `{integer}`
224+ | help: remove the extra argument
239225 |
240226note: function defined here
241227 --> $DIR/extra_arguments.rs:4:4
242228 |
243229LL | fn two_arg_diff(_a: i32, _b: &str) {}
244230 | ^^^^^^^^^^^^ ------- --------
245- help: remove the extra argument
246- |
247- LL - 1,
248- LL + 1,
249- |
250231
251232error: aborting due to 14 previous errors
252233
0 commit comments