11error[E0061]: this function takes 0 arguments but 1 argument was supplied
2- --> $DIR/extra_arguments.rs:19 :3
2+ --> $DIR/extra_arguments.rs:20 :3
33 |
44LL | empty("");
55 | ^^^^^ -- unexpected argument of type `&'static str`
66 |
77note: function defined here
8- --> $DIR/extra_arguments.rs:1 :4
8+ --> $DIR/extra_arguments.rs:2 :4
99 |
1010LL | fn empty() {}
1111 | ^^^^^
@@ -16,15 +16,15 @@ LL + empty();
1616 |
1717
1818error[E0061]: this function takes 0 arguments but 2 arguments were supplied
19- --> $DIR/extra_arguments.rs:20 :3
19+ --> $DIR/extra_arguments.rs:21 :3
2020 |
2121LL | empty(1, 1);
2222 | ^^^^^ - - unexpected argument #2 of type `{integer}`
2323 | |
2424 | unexpected argument #1 of type `{integer}`
2525 |
2626note: function defined here
27- --> $DIR/extra_arguments.rs:1 :4
27+ --> $DIR/extra_arguments.rs:2 :4
2828 |
2929LL | fn empty() {}
3030 | ^^^^^
@@ -35,13 +35,13 @@ LL + empty();
3535 |
3636
3737error[E0061]: this function takes 1 argument but 2 arguments were supplied
38- --> $DIR/extra_arguments.rs:22 :3
38+ --> $DIR/extra_arguments.rs:23 :3
3939 |
4040LL | one_arg(1, 1);
4141 | ^^^^^^^ - unexpected argument #2 of type `{integer}`
4242 |
4343note: function defined here
44- --> $DIR/extra_arguments.rs:2 :4
44+ --> $DIR/extra_arguments.rs:3 :4
4545 |
4646LL | fn one_arg<T>(_a: T) {}
4747 | ^^^^^^^
@@ -52,13 +52,13 @@ LL + one_arg(1);
5252 |
5353
5454error[E0061]: this function takes 1 argument but 2 arguments were supplied
55- --> $DIR/extra_arguments.rs:23 :3
55+ --> $DIR/extra_arguments.rs:24 :3
5656 |
5757LL | one_arg(1, "");
5858 | ^^^^^^^ -- unexpected argument #2 of type `&'static str`
5959 |
6060note: function defined here
61- --> $DIR/extra_arguments.rs:2 :4
61+ --> $DIR/extra_arguments.rs:3 :4
6262 |
6363LL | fn one_arg<T>(_a: T) {}
6464 | ^^^^^^^
@@ -69,15 +69,15 @@ LL + one_arg(1);
6969 |
7070
7171error[E0061]: this function takes 1 argument but 3 arguments were supplied
72- --> $DIR/extra_arguments.rs:24 :3
72+ --> $DIR/extra_arguments.rs:25 :3
7373 |
7474LL | one_arg(1, "", 1.0);
7575 | ^^^^^^^ -- --- unexpected argument #3 of type `{float}`
7676 | |
7777 | unexpected argument #2 of type `&'static str`
7878 |
7979note: function defined here
80- --> $DIR/extra_arguments.rs:2 :4
80+ --> $DIR/extra_arguments.rs:3 :4
8181 |
8282LL | fn one_arg<T>(_a: T) {}
8383 | ^^^^^^^
@@ -88,13 +88,13 @@ LL + one_arg(1);
8888 |
8989
9090error[E0061]: this function takes 2 arguments but 3 arguments were supplied
91- --> $DIR/extra_arguments.rs:26 :3
91+ --> $DIR/extra_arguments.rs:27 :3
9292 |
9393LL | two_arg_same(1, 1, 1);
9494 | ^^^^^^^^^^^^ - unexpected argument #3 of type `{integer}`
9595 |
9696note: function defined here
97- --> $DIR/extra_arguments.rs:3 :4
97+ --> $DIR/extra_arguments.rs:4 :4
9898 |
9999LL | fn two_arg_same(_a: i32, _b: i32) {}
100100 | ^^^^^^^^^^^^
@@ -105,13 +105,13 @@ LL + two_arg_same(1, 1);
105105 |
106106
107107error[E0061]: this function takes 2 arguments but 3 arguments were supplied
108- --> $DIR/extra_arguments.rs:27 :3
108+ --> $DIR/extra_arguments.rs:28 :3
109109 |
110110LL | two_arg_same(1, 1, 1.0);
111111 | ^^^^^^^^^^^^ --- unexpected argument #3 of type `{float}`
112112 |
113113note: function defined here
114- --> $DIR/extra_arguments.rs:3 :4
114+ --> $DIR/extra_arguments.rs:4 :4
115115 |
116116LL | fn two_arg_same(_a: i32, _b: i32) {}
117117 | ^^^^^^^^^^^^
@@ -122,13 +122,13 @@ LL + two_arg_same(1, 1);
122122 |
123123
124124error[E0061]: this function takes 2 arguments but 3 arguments were supplied
125- --> $DIR/extra_arguments.rs:29 :3
125+ --> $DIR/extra_arguments.rs:30 :3
126126 |
127127LL | two_arg_diff(1, 1, "");
128128 | ^^^^^^^^^^^^ - unexpected argument #2 of type `{integer}`
129129 |
130130note: function defined here
131- --> $DIR/extra_arguments.rs:4 :4
131+ --> $DIR/extra_arguments.rs:5 :4
132132 |
133133LL | fn two_arg_diff(_a: i32, _b: &str) {}
134134 | ^^^^^^^^^^^^
@@ -139,13 +139,13 @@ LL + two_arg_diff(1, "");
139139 |
140140
141141error[E0061]: this function takes 2 arguments but 3 arguments were supplied
142- --> $DIR/extra_arguments.rs:30 :3
142+ --> $DIR/extra_arguments.rs:31 :3
143143 |
144144LL | two_arg_diff(1, "", "");
145145 | ^^^^^^^^^^^^ -- unexpected argument #3 of type `&'static str`
146146 |
147147note: function defined here
148- --> $DIR/extra_arguments.rs:4 :4
148+ --> $DIR/extra_arguments.rs:5 :4
149149 |
150150LL | fn two_arg_diff(_a: i32, _b: &str) {}
151151 | ^^^^^^^^^^^^
@@ -156,15 +156,15 @@ LL + two_arg_diff(1, "");
156156 |
157157
158158error[E0061]: this function takes 2 arguments but 4 arguments were supplied
159- --> $DIR/extra_arguments.rs:31 :3
159+ --> $DIR/extra_arguments.rs:32 :3
160160 |
161161LL | two_arg_diff(1, 1, "", "");
162162 | ^^^^^^^^^^^^ - -- unexpected argument #4 of type `&'static str`
163163 | |
164164 | unexpected argument #2 of type `{integer}`
165165 |
166166note: function defined here
167- --> $DIR/extra_arguments.rs:4 :4
167+ --> $DIR/extra_arguments.rs:5 :4
168168 |
169169LL | fn two_arg_diff(_a: i32, _b: &str) {}
170170 | ^^^^^^^^^^^^
@@ -175,15 +175,15 @@ LL + two_arg_diff(1, "");
175175 |
176176
177177error[E0061]: this function takes 2 arguments but 4 arguments were supplied
178- --> $DIR/extra_arguments.rs:32 :3
178+ --> $DIR/extra_arguments.rs:33 :3
179179 |
180180LL | two_arg_diff(1, "", 1, "");
181181 | ^^^^^^^^^^^^ - -- unexpected argument #4 of type `&'static str`
182182 | |
183183 | unexpected argument #3 of type `{integer}`
184184 |
185185note: function defined here
186- --> $DIR/extra_arguments.rs:4 :4
186+ --> $DIR/extra_arguments.rs:5 :4
187187 |
188188LL | fn two_arg_diff(_a: i32, _b: &str) {}
189189 | ^^^^^^^^^^^^
@@ -194,13 +194,13 @@ LL + two_arg_diff(1, "");
194194 |
195195
196196error[E0061]: this function takes 2 arguments but 3 arguments were supplied
197- --> $DIR/extra_arguments.rs:35 :3
197+ --> $DIR/extra_arguments.rs:36 :3
198198 |
199199LL | two_arg_same(1, 1, "");
200200 | ^^^^^^^^^^^^ -- unexpected argument #3 of type `&'static str`
201201 |
202202note: function defined here
203- --> $DIR/extra_arguments.rs:3 :4
203+ --> $DIR/extra_arguments.rs:4 :4
204204 |
205205LL | fn two_arg_same(_a: i32, _b: i32) {}
206206 | ^^^^^^^^^^^^
@@ -211,13 +211,13 @@ LL + two_arg_same(1, 1);
211211 |
212212
213213error[E0061]: this function takes 2 arguments but 3 arguments were supplied
214- --> $DIR/extra_arguments.rs:36 :3
214+ --> $DIR/extra_arguments.rs:37 :3
215215 |
216216LL | two_arg_diff(1, 1, "");
217217 | ^^^^^^^^^^^^ - unexpected argument #2 of type `{integer}`
218218 |
219219note: function defined here
220- --> $DIR/extra_arguments.rs:4 :4
220+ --> $DIR/extra_arguments.rs:5 :4
221221 |
222222LL | fn two_arg_diff(_a: i32, _b: &str) {}
223223 | ^^^^^^^^^^^^
@@ -228,7 +228,7 @@ LL + two_arg_diff(1, "");
228228 |
229229
230230error[E0061]: this function takes 2 arguments but 3 arguments were supplied
231- --> $DIR/extra_arguments.rs:37 :3
231+ --> $DIR/extra_arguments.rs:38 :3
232232 |
233233LL | two_arg_same(
234234 | ^^^^^^^^^^^^
@@ -237,7 +237,7 @@ LL | ""
237237 | -- unexpected argument #3 of type `&'static str`
238238 |
239239note: function defined here
240- --> $DIR/extra_arguments.rs:3 :4
240+ --> $DIR/extra_arguments.rs:4 :4
241241 |
242242LL | fn two_arg_same(_a: i32, _b: i32) {}
243243 | ^^^^^^^^^^^^
@@ -249,7 +249,7 @@ LL + 1
249249 |
250250
251251error[E0061]: this function takes 2 arguments but 3 arguments were supplied
252- --> $DIR/extra_arguments.rs:43 :3
252+ --> $DIR/extra_arguments.rs:44 :3
253253 |
254254LL | two_arg_diff(
255255 | ^^^^^^^^^^^^
@@ -258,7 +258,7 @@ LL | 1,
258258 | - unexpected argument #2 of type `{integer}`
259259 |
260260note: function defined here
261- --> $DIR/extra_arguments.rs:4 :4
261+ --> $DIR/extra_arguments.rs:5 :4
262262 |
263263LL | fn two_arg_diff(_a: i32, _b: &str) {}
264264 | ^^^^^^^^^^^^
@@ -268,7 +268,7 @@ LL - 1,
268268 |
269269
270270error[E0061]: this function takes 0 arguments but 2 arguments were supplied
271- --> $DIR/extra_arguments.rs:8 :9
271+ --> $DIR/extra_arguments.rs:9 :9
272272 |
273273LL | empty($x, 1);
274274 | ^^^^^ - unexpected argument #2 of type `{integer}`
@@ -280,14 +280,14 @@ LL | foo!(1, ~);
280280 | in this macro invocation
281281 |
282282note: function defined here
283- --> $DIR/extra_arguments.rs:1 :4
283+ --> $DIR/extra_arguments.rs:2 :4
284284 |
285285LL | fn empty() {}
286286 | ^^^^^
287287 = note: this error originates in the macro `foo` (in Nightly builds, run with -Z macro-backtrace for more info)
288288
289289error[E0061]: this function takes 0 arguments but 2 arguments were supplied
290- --> $DIR/extra_arguments.rs:14 :9
290+ --> $DIR/extra_arguments.rs:15 :9
291291 |
292292LL | empty(1, $y);
293293 | ^^^^^ - unexpected argument #1 of type `{integer}`
@@ -299,14 +299,14 @@ LL | foo!(~, 1);
299299 | in this macro invocation
300300 |
301301note: function defined here
302- --> $DIR/extra_arguments.rs:1 :4
302+ --> $DIR/extra_arguments.rs:2 :4
303303 |
304304LL | fn empty() {}
305305 | ^^^^^
306306 = note: this error originates in the macro `foo` (in Nightly builds, run with -Z macro-backtrace for more info)
307307
308308error[E0061]: this function takes 0 arguments but 2 arguments were supplied
309- --> $DIR/extra_arguments.rs:11 :9
309+ --> $DIR/extra_arguments.rs:12 :9
310310 |
311311LL | empty($x, $y);
312312 | ^^^^^
@@ -319,20 +319,20 @@ LL | foo!(1, 1);
319319 | in this macro invocation
320320 |
321321note: function defined here
322- --> $DIR/extra_arguments.rs:1 :4
322+ --> $DIR/extra_arguments.rs:2 :4
323323 |
324324LL | fn empty() {}
325325 | ^^^^^
326326 = note: this error originates in the macro `foo` (in Nightly builds, run with -Z macro-backtrace for more info)
327327
328328error[E0061]: this function takes 1 argument but 2 arguments were supplied
329- --> $DIR/extra_arguments.rs:53 :3
329+ --> $DIR/extra_arguments.rs:54 :3
330330 |
331331LL | one_arg(1, panic!());
332332 | ^^^^^^^ -------- unexpected argument #2
333333 |
334334note: function defined here
335- --> $DIR/extra_arguments.rs:2 :4
335+ --> $DIR/extra_arguments.rs:3 :4
336336 |
337337LL | fn one_arg<T>(_a: T) {}
338338 | ^^^^^^^
@@ -343,13 +343,13 @@ LL + one_arg(1);
343343 |
344344
345345error[E0061]: this function takes 1 argument but 2 arguments were supplied
346- --> $DIR/extra_arguments.rs:54 :3
346+ --> $DIR/extra_arguments.rs:55 :3
347347 |
348348LL | one_arg(panic!(), 1);
349349 | ^^^^^^^ - unexpected argument #2 of type `{integer}`
350350 |
351351note: function defined here
352- --> $DIR/extra_arguments.rs:2 :4
352+ --> $DIR/extra_arguments.rs:3 :4
353353 |
354354LL | fn one_arg<T>(_a: T) {}
355355 | ^^^^^^^
@@ -360,13 +360,13 @@ LL + one_arg(panic!());
360360 |
361361
362362error[E0061]: this function takes 1 argument but 2 arguments were supplied
363- --> $DIR/extra_arguments.rs:55 :3
363+ --> $DIR/extra_arguments.rs:56 :3
364364 |
365365LL | one_arg(stringify!($e), 1);
366366 | ^^^^^^^ - unexpected argument #2 of type `{integer}`
367367 |
368368note: function defined here
369- --> $DIR/extra_arguments.rs:2 :4
369+ --> $DIR/extra_arguments.rs:3 :4
370370 |
371371LL | fn one_arg<T>(_a: T) {}
372372 | ^^^^^^^
@@ -377,13 +377,13 @@ LL + one_arg(stringify!($e));
377377 |
378378
379379error[E0061]: this function takes 1 argument but 2 arguments were supplied
380- --> $DIR/extra_arguments.rs:60 :3
380+ --> $DIR/extra_arguments.rs:61 :3
381381 |
382382LL | one_arg(for _ in 1.. {}, 1);
383383 | ^^^^^^^ - unexpected argument #2 of type `{integer}`
384384 |
385385note: function defined here
386- --> $DIR/extra_arguments.rs:2 :4
386+ --> $DIR/extra_arguments.rs:3 :4
387387 |
388388LL | fn one_arg<T>(_a: T) {}
389389 | ^^^^^^^
0 commit comments