]>
Commit | Line | Data |
---|---|---|
04454e1e FG |
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(); | |
923072b8 | 5 | | ^^^^^^^-- an argument of type `i32` is missing |
04454e1e FG |
6 | | |
7 | note: function defined here | |
8 | --> $DIR/missing_arguments.rs:1:4 | |
9 | | | |
10 | LL | fn one_arg(_a: i32) {} | |
11 | | ^^^^^^^ ------- | |
923072b8 FG |
12 | help: provide the argument |
13 | | | |
14 | LL | one_arg(/* i32 */); | |
f2b60f7d | 15 | | ~~~~~~~~~~~ |
04454e1e FG |
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( ); | |
923072b8 | 21 | | ^^^^^^^^----------------- two arguments of type `i32` and `i32` are missing |
04454e1e FG |
22 | | |
23 | note: function defined here | |
24 | --> $DIR/missing_arguments.rs:2:4 | |
25 | | | |
26 | LL | fn two_same(_a: i32, _b: i32) {} | |
27 | | ^^^^^^^^ ------- ------- | |
923072b8 FG |
28 | help: provide the arguments |
29 | | | |
30 | LL | two_same(/* i32 */, /* i32 */); | |
f2b60f7d | 31 | | ~~~~~~~~~~~~~~~~~~~~~~ |
04454e1e FG |
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 ); | |
923072b8 | 37 | | ^^^^^^^^----------------- an argument of type `i32` is missing |
04454e1e FG |
38 | | |
39 | note: function defined here | |
40 | --> $DIR/missing_arguments.rs:2:4 | |
41 | | | |
42 | LL | fn two_same(_a: i32, _b: i32) {} | |
43 | | ^^^^^^^^ ------- ------- | |
923072b8 FG |
44 | help: provide the argument |
45 | | | |
46 | LL | two_same(1, /* i32 */); | |
f2b60f7d | 47 | | ~~~~~~~~~~~~~~ |
04454e1e FG |
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( ); | |
923072b8 | 53 | | ^^^^^^^^----------------- two arguments of type `i32` and `f32` are missing |
04454e1e FG |
54 | | |
55 | note: function defined here | |
56 | --> $DIR/missing_arguments.rs:3:4 | |
57 | | | |
58 | LL | fn two_diff(_a: i32, _b: f32) {} | |
59 | | ^^^^^^^^ ------- ------- | |
923072b8 FG |
60 | help: provide the arguments |
61 | | | |
62 | LL | two_diff(/* i32 */, /* f32 */); | |
f2b60f7d | 63 | | ~~~~~~~~~~~~~~~~~~~~~~ |
04454e1e FG |
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 ); | |
923072b8 | 69 | | ^^^^^^^^----------------- an argument of type `f32` is missing |
04454e1e FG |
70 | | |
71 | note: function defined here | |
72 | --> $DIR/missing_arguments.rs:3:4 | |
73 | | | |
74 | LL | fn two_diff(_a: i32, _b: f32) {} | |
75 | | ^^^^^^^^ ------- ------- | |
923072b8 FG |
76 | help: provide the argument |
77 | | | |
78 | LL | two_diff(1, /* f32 */); | |
f2b60f7d | 79 | | ~~~~~~~~~~~~~~ |
04454e1e FG |
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 ); | |
923072b8 | 85 | | ^^^^^^^^ --- an argument of type `i32` is missing |
04454e1e FG |
86 | | |
87 | note: function defined here | |
88 | --> $DIR/missing_arguments.rs:3:4 | |
89 | | | |
90 | LL | fn two_diff(_a: i32, _b: f32) {} | |
91 | | ^^^^^^^^ ------- ------- | |
923072b8 FG |
92 | help: provide the argument |
93 | | | |
94 | LL | two_diff(/* i32 */, 1.0); | |
f2b60f7d | 95 | | ~~~~~~~~~~~~~~~~ |
04454e1e FG |
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( ); | |
923072b8 | 101 | | ^^^^^^^^^^------------------------- three arguments of type `i32`, `i32`, and `i32` are missing |
04454e1e FG |
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 | | ^^^^^^^^^^ ------- ------- ------- | |
923072b8 FG |
108 | help: provide the arguments |
109 | | | |
110 | LL | three_same(/* i32 */, /* i32 */, /* i32 */); | |
f2b60f7d | 111 | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
04454e1e FG |
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 ); | |
923072b8 | 117 | | ^^^^^^^^^^------------------------- two arguments of type `i32` and `i32` are missing |
04454e1e FG |
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 | | ^^^^^^^^^^ ------- ------- ------- | |
923072b8 FG |
124 | help: provide the arguments |
125 | | | |
126 | LL | three_same(1, /* i32 */, /* i32 */); | |
f2b60f7d | 127 | | ~~~~~~~~~~~~~~~~~~~~~~~~~ |
04454e1e FG |
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 ); | |
923072b8 | 133 | | ^^^^^^^^^^------------------------- an argument of type `i32` is missing |
04454e1e FG |
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 | | ^^^^^^^^^^ ------- ------- ------- | |
923072b8 FG |
140 | help: provide the argument |
141 | | | |
142 | LL | three_same(1, 1, /* i32 */); | |
f2b60f7d | 143 | | ~~~~~~~~~~~~~~~~~ |
04454e1e FG |
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, "" ); | |
923072b8 | 149 | | ^^^^^^^^^^ --- an argument of type `i32` is missing |
04454e1e FG |
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 | | ^^^^^^^^^^ ------- ------- -------- | |
923072b8 FG |
156 | help: provide the argument |
157 | | | |
158 | LL | three_diff(/* i32 */, 1.0, ""); | |
f2b60f7d | 159 | | ~~~~~~~~~~~~~~~~~~~~ |
04454e1e FG |
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, "" ); | |
923072b8 | 165 | | ^^^^^^^^^^ -- an argument of type `f32` is missing |
04454e1e FG |
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 | | ^^^^^^^^^^ ------- ------- -------- | |
923072b8 FG |
172 | help: provide the argument |
173 | | | |
174 | LL | three_diff(1, /* f32 */, ""); | |
f2b60f7d | 175 | | ~~~~~~~~~~~~~~~~~~ |
04454e1e FG |
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 ); | |
923072b8 | 181 | | ^^^^^^^^^^------------------------- an argument of type `&str` is missing |
04454e1e FG |
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 | | ^^^^^^^^^^ ------- ------- -------- | |
923072b8 FG |
188 | help: provide the argument |
189 | | | |
190 | LL | three_diff(1, 1.0, /* &str */); | |
f2b60f7d | 191 | | ~~~~~~~~~~~~~~~~~~~~ |
04454e1e FG |
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( "" ); | |
923072b8 | 197 | | ^^^^^^^^^^------------------------- two arguments of type `i32` and `f32` are missing |
04454e1e FG |
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 | | ^^^^^^^^^^ ------- ------- -------- | |
923072b8 FG |
204 | help: provide the arguments |
205 | | | |
206 | LL | three_diff(/* i32 */, /* f32 */, ""); | |
f2b60f7d | 207 | | ~~~~~~~~~~~~~~~~~~~~~~~~~~ |
04454e1e FG |
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 ); | |
923072b8 FG |
213 | | ^^^^^^^^^^------------------------- |
214 | | | | | |
215 | | | an argument of type `i32` is missing | |
216 | | an argument of type `&str` is missing | |
04454e1e FG |
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 | | ^^^^^^^^^^ ------- ------- -------- | |
923072b8 FG |
223 | help: provide the arguments |
224 | | | |
225 | LL | three_diff(/* i32 */, 1.0, /* &str */); | |
f2b60f7d | 226 | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
04454e1e FG |
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 ); | |
923072b8 | 232 | | ^^^^^^^^^^------------------------- two arguments of type `f32` and `&str` are missing |
04454e1e FG |
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 | | ^^^^^^^^^^ ------- ------- -------- | |
923072b8 FG |
239 | help: provide the arguments |
240 | | | |
241 | LL | three_diff(1, /* f32 */, /* &str */); | |
f2b60f7d | 242 | | ~~~~~~~~~~~~~~~~~~~~~~~~~~ |
04454e1e FG |
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( ); | |
923072b8 | 248 | | ^^^^^^^^^^^^^--------------------------------- multiple arguments are missing |
04454e1e FG |
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 | | ^^^^^^^^^^^^^ ------- ------- ------- -------- | |
923072b8 FG |
255 | help: provide the arguments |
256 | | | |
257 | LL | four_repeated(/* i32 */, /* f32 */, /* f32 */, /* &str */); | |
f2b60f7d | 258 | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
04454e1e FG |
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, "" ); | |
923072b8 | 264 | | ^^^^^^^^^^^^^--------------------------------- two arguments of type `f32` and `f32` are missing |
04454e1e FG |
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 | | ^^^^^^^^^^^^^ ------- ------- ------- -------- | |
923072b8 FG |
271 | help: provide the arguments |
272 | | | |
273 | LL | four_repeated(1, /* f32 */, /* f32 */, ""); | |
f2b60f7d | 274 | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
04454e1e FG |
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( ); | |
923072b8 | 280 | | ^^^^^^^--------------------------------- multiple arguments are missing |
04454e1e FG |
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 | | ^^^^^^^ ------- ------- ------- ------- -------- | |
923072b8 FG |
287 | help: provide the arguments |
288 | | | |
289 | LL | complex(/* i32 */, /* f32 */, /* i32 */, /* f32 */, /* &str */); | |
f2b60f7d | 290 | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
04454e1e FG |
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, "" ); | |
923072b8 | 296 | | ^^^^^^^--------------------------------- three arguments of type `f32`, `i32`, and `f32` are missing |
04454e1e FG |
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 | | ^^^^^^^ ------- ------- ------- ------- -------- | |
923072b8 FG |
303 | help: provide the arguments |
304 | | | |
305 | LL | complex(1, /* f32 */, /* i32 */, /* f32 */, ""); | |
f2b60f7d | 306 | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
04454e1e FG |
307 | |
308 | error: aborting due to 19 previous errors | |
309 | ||
310 | For more information about this error, try `rustc --explain E0061`. |