]> git.lizzy.rs Git - rust.git/blob - src/test/ui/argument-suggestions/missing_arguments.stderr
Rollup merge of #103193 - krasimirgg:sysonce, r=Amanieu
[rust.git] / src / test / ui / argument-suggestions / missing_arguments.stderr
1 error[E0061]: this function takes 1 argument but 0 arguments were supplied
2   --> $DIR/missing_arguments.rs:10:3
3    |
4 LL |   one_arg();
5    |   ^^^^^^^-- an argument of type `i32` is missing
6    |
7 note: function defined here
8   --> $DIR/missing_arguments.rs:1:4
9    |
10 LL | fn one_arg(_a: i32) {}
11    |    ^^^^^^^ -------
12 help: provide the argument
13    |
14 LL |   one_arg(/* i32 */);
15    |          ~~~~~~~~~~~
16
17 error[E0061]: this function takes 2 arguments but 0 arguments were supplied
18   --> $DIR/missing_arguments.rs:14:3
19    |
20 LL |   two_same(               );
21    |   ^^^^^^^^----------------- two arguments of type `i32` and `i32` are missing
22    |
23 note: function defined here
24   --> $DIR/missing_arguments.rs:2:4
25    |
26 LL | fn two_same(_a: i32, _b: i32) {}
27    |    ^^^^^^^^ -------  -------
28 help: provide the arguments
29    |
30 LL |   two_same(/* i32 */, /* i32 */);
31    |           ~~~~~~~~~~~~~~~~~~~~~~
32
33 error[E0061]: this function takes 2 arguments but 1 argument was supplied
34   --> $DIR/missing_arguments.rs:15:3
35    |
36 LL |   two_same(   1           );
37    |   ^^^^^^^^----------------- an argument of type `i32` is missing
38    |
39 note: function defined here
40   --> $DIR/missing_arguments.rs:2:4
41    |
42 LL | fn two_same(_a: i32, _b: i32) {}
43    |    ^^^^^^^^ -------  -------
44 help: provide the argument
45    |
46 LL |   two_same(1, /* i32 */);
47    |           ~~~~~~~~~~~~~~
48
49 error[E0061]: this function takes 2 arguments but 0 arguments were supplied
50   --> $DIR/missing_arguments.rs:16:3
51    |
52 LL |   two_diff(               );
53    |   ^^^^^^^^----------------- two arguments of type `i32` and `f32` are missing
54    |
55 note: function defined here
56   --> $DIR/missing_arguments.rs:3:4
57    |
58 LL | fn two_diff(_a: i32, _b: f32) {}
59    |    ^^^^^^^^ -------  -------
60 help: provide the arguments
61    |
62 LL |   two_diff(/* i32 */, /* f32 */);
63    |           ~~~~~~~~~~~~~~~~~~~~~~
64
65 error[E0061]: this function takes 2 arguments but 1 argument was supplied
66   --> $DIR/missing_arguments.rs:17:3
67    |
68 LL |   two_diff(   1           );
69    |   ^^^^^^^^----------------- an argument of type `f32` is missing
70    |
71 note: function defined here
72   --> $DIR/missing_arguments.rs:3:4
73    |
74 LL | fn two_diff(_a: i32, _b: f32) {}
75    |    ^^^^^^^^ -------  -------
76 help: provide the argument
77    |
78 LL |   two_diff(1, /* f32 */);
79    |           ~~~~~~~~~~~~~~
80
81 error[E0061]: this function takes 2 arguments but 1 argument was supplied
82   --> $DIR/missing_arguments.rs:18:3
83    |
84 LL |   two_diff(          1.0  );
85    |   ^^^^^^^^           --- an argument of type `i32` is missing
86    |
87 note: function defined here
88   --> $DIR/missing_arguments.rs:3:4
89    |
90 LL | fn two_diff(_a: i32, _b: f32) {}
91    |    ^^^^^^^^ -------  -------
92 help: provide the argument
93    |
94 LL |   two_diff(/* i32 */, 1.0);
95    |           ~~~~~~~~~~~~~~~~
96
97 error[E0061]: this function takes 3 arguments but 0 arguments were supplied
98   --> $DIR/missing_arguments.rs:21:3
99    |
100 LL |   three_same(                       );
101    |   ^^^^^^^^^^------------------------- three arguments of type `i32`, `i32`, and `i32` are missing
102    |
103 note: function defined here
104   --> $DIR/missing_arguments.rs:4:4
105    |
106 LL | fn three_same(_a: i32, _b: i32, _c: i32) {}
107    |    ^^^^^^^^^^ -------  -------  -------
108 help: provide the arguments
109    |
110 LL |   three_same(/* i32 */, /* i32 */, /* i32 */);
111    |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
112
113 error[E0061]: this function takes 3 arguments but 1 argument was supplied
114   --> $DIR/missing_arguments.rs:22:3
115    |
116 LL |   three_same(   1                   );
117    |   ^^^^^^^^^^------------------------- two arguments of type `i32` and `i32` are missing
118    |
119 note: function defined here
120   --> $DIR/missing_arguments.rs:4:4
121    |
122 LL | fn three_same(_a: i32, _b: i32, _c: i32) {}
123    |    ^^^^^^^^^^ -------  -------  -------
124 help: provide the arguments
125    |
126 LL |   three_same(1, /* i32 */, /* i32 */);
127    |             ~~~~~~~~~~~~~~~~~~~~~~~~~
128
129 error[E0061]: this function takes 3 arguments but 2 arguments were supplied
130   --> $DIR/missing_arguments.rs:23:3
131    |
132 LL |   three_same(   1,      1           );
133    |   ^^^^^^^^^^------------------------- an argument of type `i32` is missing
134    |
135 note: function defined here
136   --> $DIR/missing_arguments.rs:4:4
137    |
138 LL | fn three_same(_a: i32, _b: i32, _c: i32) {}
139    |    ^^^^^^^^^^ -------  -------  -------
140 help: provide the argument
141    |
142 LL |   three_same(1, 1, /* i32 */);
143    |             ~~~~~~~~~~~~~~~~~
144
145 error[E0061]: this function takes 3 arguments but 2 arguments were supplied
146   --> $DIR/missing_arguments.rs:26:3
147    |
148 LL |   three_diff(          1.0,     ""  );
149    |   ^^^^^^^^^^           --- an argument of type `i32` is missing
150    |
151 note: function defined here
152   --> $DIR/missing_arguments.rs:5:4
153    |
154 LL | fn three_diff(_a: i32, _b: f32, _c: &str) {}
155    |    ^^^^^^^^^^ -------  -------  --------
156 help: provide the argument
157    |
158 LL |   three_diff(/* i32 */, 1.0, "");
159    |             ~~~~~~~~~~~~~~~~~~~~
160
161 error[E0061]: this function takes 3 arguments but 2 arguments were supplied
162   --> $DIR/missing_arguments.rs:27:3
163    |
164 LL |   three_diff(   1,              ""  );
165    |   ^^^^^^^^^^                    -- an argument of type `f32` is missing
166    |
167 note: function defined here
168   --> $DIR/missing_arguments.rs:5:4
169    |
170 LL | fn three_diff(_a: i32, _b: f32, _c: &str) {}
171    |    ^^^^^^^^^^ -------  -------  --------
172 help: provide the argument
173    |
174 LL |   three_diff(1, /* f32 */, "");
175    |             ~~~~~~~~~~~~~~~~~~
176
177 error[E0061]: this function takes 3 arguments but 2 arguments were supplied
178   --> $DIR/missing_arguments.rs:28:3
179    |
180 LL |   three_diff(   1,     1.0          );
181    |   ^^^^^^^^^^------------------------- an argument of type `&str` is missing
182    |
183 note: function defined here
184   --> $DIR/missing_arguments.rs:5:4
185    |
186 LL | fn three_diff(_a: i32, _b: f32, _c: &str) {}
187    |    ^^^^^^^^^^ -------  -------  --------
188 help: provide the argument
189    |
190 LL |   three_diff(1, 1.0, /* &str */);
191    |             ~~~~~~~~~~~~~~~~~~~~
192
193 error[E0061]: this function takes 3 arguments but 1 argument was supplied
194   --> $DIR/missing_arguments.rs:29:3
195    |
196 LL |   three_diff(                   ""  );
197    |   ^^^^^^^^^^------------------------- two arguments of type `i32` and `f32` are missing
198    |
199 note: function defined here
200   --> $DIR/missing_arguments.rs:5:4
201    |
202 LL | fn three_diff(_a: i32, _b: f32, _c: &str) {}
203    |    ^^^^^^^^^^ -------  -------  --------
204 help: provide the arguments
205    |
206 LL |   three_diff(/* i32 */, /* f32 */, "");
207    |             ~~~~~~~~~~~~~~~~~~~~~~~~~~
208
209 error[E0061]: this function takes 3 arguments but 1 argument was supplied
210   --> $DIR/missing_arguments.rs:30:3
211    |
212 LL |   three_diff(          1.0          );
213    |   ^^^^^^^^^^-------------------------
214    |             |          |
215    |             |          an argument of type `i32` is missing
216    |             an argument of type `&str` is missing
217    |
218 note: function defined here
219   --> $DIR/missing_arguments.rs:5:4
220    |
221 LL | fn three_diff(_a: i32, _b: f32, _c: &str) {}
222    |    ^^^^^^^^^^ -------  -------  --------
223 help: provide the arguments
224    |
225 LL |   three_diff(/* i32 */, 1.0, /* &str */);
226    |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
227
228 error[E0061]: this function takes 3 arguments but 1 argument was supplied
229   --> $DIR/missing_arguments.rs:31:3
230    |
231 LL |   three_diff(   1                   );
232    |   ^^^^^^^^^^------------------------- two arguments of type `f32` and `&str` are missing
233    |
234 note: function defined here
235   --> $DIR/missing_arguments.rs:5:4
236    |
237 LL | fn three_diff(_a: i32, _b: f32, _c: &str) {}
238    |    ^^^^^^^^^^ -------  -------  --------
239 help: provide the arguments
240    |
241 LL |   three_diff(1, /* f32 */, /* &str */);
242    |             ~~~~~~~~~~~~~~~~~~~~~~~~~~
243
244 error[E0061]: this function takes 4 arguments but 0 arguments were supplied
245   --> $DIR/missing_arguments.rs:34:3
246    |
247 LL |   four_repeated(                               );
248    |   ^^^^^^^^^^^^^--------------------------------- multiple arguments are missing
249    |
250 note: function defined here
251   --> $DIR/missing_arguments.rs:6:4
252    |
253 LL | fn four_repeated(_a: i32, _b: f32, _c: f32, _d: &str) {}
254    |    ^^^^^^^^^^^^^ -------  -------  -------  --------
255 help: provide the arguments
256    |
257 LL |   four_repeated(/* i32 */, /* f32 */, /* f32 */, /* &str */);
258    |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
259
260 error[E0061]: this function takes 4 arguments but 2 arguments were supplied
261   --> $DIR/missing_arguments.rs:35:3
262    |
263 LL |   four_repeated(   1,                     ""   );
264    |   ^^^^^^^^^^^^^--------------------------------- two arguments of type `f32` and `f32` are missing
265    |
266 note: function defined here
267   --> $DIR/missing_arguments.rs:6:4
268    |
269 LL | fn four_repeated(_a: i32, _b: f32, _c: f32, _d: &str) {}
270    |    ^^^^^^^^^^^^^ -------  -------  -------  --------
271 help: provide the arguments
272    |
273 LL |   four_repeated(1, /* f32 */, /* f32 */, "");
274    |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
275
276 error[E0061]: this function takes 5 arguments but 0 arguments were supplied
277   --> $DIR/missing_arguments.rs:38:3
278    |
279 LL |   complex(                               );
280    |   ^^^^^^^--------------------------------- multiple arguments are missing
281    |
282 note: function defined here
283   --> $DIR/missing_arguments.rs:7:4
284    |
285 LL | fn complex(_a: i32, _b: f32, _c: i32, _d: f32, _e: &str) {}
286    |    ^^^^^^^ -------  -------  -------  -------  --------
287 help: provide the arguments
288    |
289 LL |   complex(/* i32 */, /* f32 */, /* i32 */, /* f32 */, /* &str */);
290    |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
291
292 error[E0061]: this function takes 5 arguments but 2 arguments were supplied
293   --> $DIR/missing_arguments.rs:39:3
294    |
295 LL |   complex(   1,                     ""   );
296    |   ^^^^^^^--------------------------------- three arguments of type `f32`, `i32`, and `f32` are missing
297    |
298 note: function defined here
299   --> $DIR/missing_arguments.rs:7:4
300    |
301 LL | fn complex(_a: i32, _b: f32, _c: i32, _d: f32, _e: &str) {}
302    |    ^^^^^^^ -------  -------  -------  -------  --------
303 help: provide the arguments
304    |
305 LL |   complex(1, /* f32 */, /* i32 */, /* f32 */, "");
306    |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
307
308 error: aborting due to 19 previous errors
309
310 For more information about this error, try `rustc --explain E0061`.