1 error[E0061]: this function takes 0 arguments but 1 argument was supplied
2 --> $DIR/extra_arguments.rs:7:3
5 | ^^^^^ -- argument of type `&'static str` unexpected
7 note: function defined here
8 --> $DIR/extra_arguments.rs:1:4
12 help: remove the extra argument
17 error[E0061]: this function takes 1 argument but 2 arguments were supplied
18 --> $DIR/extra_arguments.rs:9:3
21 | ^^^^^^^ - argument of type `{integer}` unexpected
23 note: function defined here
24 --> $DIR/extra_arguments.rs:2:4
26 LL | fn one_arg(_a: i32) {}
28 help: remove the extra argument
33 error[E0061]: this function takes 1 argument but 2 arguments were supplied
34 --> $DIR/extra_arguments.rs:10:3
37 | ^^^^^^^ -- argument of type `&'static str` unexpected
39 note: function defined here
40 --> $DIR/extra_arguments.rs:2:4
42 LL | fn one_arg(_a: i32) {}
44 help: remove the extra argument
49 error[E0061]: this function takes 1 argument but 3 arguments were supplied
50 --> $DIR/extra_arguments.rs:11:3
52 LL | one_arg(1, "", 1.0);
53 | ^^^^^^^ -- --- argument of type `{float}` unexpected
55 | argument of type `&'static str` unexpected
57 note: function defined here
58 --> $DIR/extra_arguments.rs:2:4
60 LL | fn one_arg(_a: i32) {}
62 help: remove the extra arguments
67 error[E0061]: this function takes 2 arguments but 3 arguments were supplied
68 --> $DIR/extra_arguments.rs:13:3
70 LL | two_arg_same(1, 1, 1);
71 | ^^^^^^^^^^^^ - argument of type `{integer}` unexpected
73 note: function defined here
74 --> $DIR/extra_arguments.rs:3:4
76 LL | fn two_arg_same(_a: i32, _b: i32) {}
77 | ^^^^^^^^^^^^ ------- -------
78 help: remove the extra argument
80 LL | two_arg_same(1, 1);
83 error[E0061]: this function takes 2 arguments but 3 arguments were supplied
84 --> $DIR/extra_arguments.rs:14:3
86 LL | two_arg_same(1, 1, 1.0);
87 | ^^^^^^^^^^^^ --- argument of type `{float}` unexpected
89 note: function defined here
90 --> $DIR/extra_arguments.rs:3:4
92 LL | fn two_arg_same(_a: i32, _b: i32) {}
93 | ^^^^^^^^^^^^ ------- -------
94 help: remove the extra argument
96 LL | two_arg_same(1, 1);
99 error[E0061]: this function takes 2 arguments but 3 arguments were supplied
100 --> $DIR/extra_arguments.rs:16:3
102 LL | two_arg_diff(1, 1, "");
103 | ^^^^^^^^^^^^ - argument of type `{integer}` unexpected
105 note: function defined here
106 --> $DIR/extra_arguments.rs:4:4
108 LL | fn two_arg_diff(_a: i32, _b: &str) {}
109 | ^^^^^^^^^^^^ ------- --------
110 help: remove the extra argument
112 LL | two_arg_diff(1, "");
115 error[E0061]: this function takes 2 arguments but 3 arguments were supplied
116 --> $DIR/extra_arguments.rs:17:3
118 LL | two_arg_diff(1, "", "");
119 | ^^^^^^^^^^^^ -- argument of type `&'static str` unexpected
121 note: function defined here
122 --> $DIR/extra_arguments.rs:4:4
124 LL | fn two_arg_diff(_a: i32, _b: &str) {}
125 | ^^^^^^^^^^^^ ------- --------
126 help: remove the extra argument
128 LL | two_arg_diff(1, "");
131 error[E0061]: this function takes 2 arguments but 4 arguments were supplied
132 --> $DIR/extra_arguments.rs:18:3
134 LL | two_arg_diff(1, 1, "", "");
135 | ^^^^^^^^^^^^ - -- argument of type `&'static str` unexpected
137 | argument of type `{integer}` unexpected
139 note: function defined here
140 --> $DIR/extra_arguments.rs:4:4
142 LL | fn two_arg_diff(_a: i32, _b: &str) {}
143 | ^^^^^^^^^^^^ ------- --------
144 help: remove the extra arguments
146 LL | two_arg_diff(1, "");
149 error[E0061]: this function takes 2 arguments but 4 arguments were supplied
150 --> $DIR/extra_arguments.rs:19:3
152 LL | two_arg_diff(1, "", 1, "");
153 | ^^^^^^^^^^^^ - -- argument of type `&'static str` unexpected
155 | argument of type `{integer}` unexpected
157 note: function defined here
158 --> $DIR/extra_arguments.rs:4:4
160 LL | fn two_arg_diff(_a: i32, _b: &str) {}
161 | ^^^^^^^^^^^^ ------- --------
162 help: remove the extra arguments
164 LL | two_arg_diff(1, "");
167 error[E0061]: this function takes 2 arguments but 3 arguments were supplied
168 --> $DIR/extra_arguments.rs:22:3
170 LL | two_arg_same(1, 1, "");
171 | ^^^^^^^^^^^^ -- argument of type `&'static str` unexpected
173 note: function defined here
174 --> $DIR/extra_arguments.rs:3:4
176 LL | fn two_arg_same(_a: i32, _b: i32) {}
177 | ^^^^^^^^^^^^ ------- -------
178 help: remove the extra argument
180 LL | two_arg_same(1, 1);
183 error[E0061]: this function takes 2 arguments but 3 arguments were supplied
184 --> $DIR/extra_arguments.rs:23:3
186 LL | two_arg_diff(1, 1, "");
187 | ^^^^^^^^^^^^ - argument of type `{integer}` unexpected
189 note: function defined here
190 --> $DIR/extra_arguments.rs:4:4
192 LL | fn two_arg_diff(_a: i32, _b: &str) {}
193 | ^^^^^^^^^^^^ ------- --------
194 help: remove the extra argument
196 LL | two_arg_diff(1, "");
199 error[E0061]: this function takes 2 arguments but 3 arguments were supplied
200 --> $DIR/extra_arguments.rs:24:3
206 | -- argument of type `&'static str` unexpected
208 note: function defined here
209 --> $DIR/extra_arguments.rs:3:4
211 LL | fn two_arg_same(_a: i32, _b: i32) {}
212 | ^^^^^^^^^^^^ ------- -------
213 help: remove the extra argument
215 LL | two_arg_same(1, 1);
218 error[E0061]: this function takes 2 arguments but 3 arguments were supplied
219 --> $DIR/extra_arguments.rs:30:3
225 | - argument of type `{integer}` unexpected
227 note: function defined here
228 --> $DIR/extra_arguments.rs:4:4
230 LL | fn two_arg_diff(_a: i32, _b: &str) {}
231 | ^^^^^^^^^^^^ ------- --------
232 help: remove the extra argument
234 LL | two_arg_diff(1, "");
237 error: aborting due to 14 previous errors
239 For more information about this error, try `rustc --explain E0061`.