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