1 error[E0308]: mismatched types
2 --> $DIR/invalid_arguments.rs:13:11
5 | ------- ^^^ expected `i32`, found floating-point number
7 | arguments to this function are incorrect
9 note: function defined here
10 --> $DIR/invalid_arguments.rs:5:4
12 LL | fn one_arg(_a: i32) {}
15 error[E0308]: mismatched types
16 --> $DIR/invalid_arguments.rs:16:19
18 LL | two_arg_same(1, "");
19 | ------------ ^^ expected `i32`, found `&str`
21 | arguments to this function are incorrect
23 note: function defined here
24 --> $DIR/invalid_arguments.rs:6:4
26 LL | fn two_arg_same(_a: i32, _b: i32) {}
27 | ^^^^^^^^^^^^ -------
29 error[E0308]: mismatched types
30 --> $DIR/invalid_arguments.rs:17:16
32 LL | two_arg_same("", 1);
33 | ------------ ^^ expected `i32`, found `&str`
35 | arguments to this function are incorrect
37 note: function defined here
38 --> $DIR/invalid_arguments.rs:6:4
40 LL | fn two_arg_same(_a: i32, _b: i32) {}
41 | ^^^^^^^^^^^^ -------
43 error[E0308]: arguments to this function are incorrect
44 --> $DIR/invalid_arguments.rs:18:3
46 LL | two_arg_same("", "");
47 | ^^^^^^^^^^^^ -- -- expected `i32`, found `&str`
49 | expected `i32`, found `&str`
51 note: function defined here
52 --> $DIR/invalid_arguments.rs:6:4
54 LL | fn two_arg_same(_a: i32, _b: i32) {}
55 | ^^^^^^^^^^^^ ------- -------
57 error[E0308]: mismatched types
58 --> $DIR/invalid_arguments.rs:19:19
60 LL | two_arg_diff(1, "");
61 | ------------ ^^ expected `f32`, found `&str`
63 | arguments to this function are incorrect
65 note: function defined here
66 --> $DIR/invalid_arguments.rs:7:4
68 LL | fn two_arg_diff(_a: i32, _b: f32) {}
69 | ^^^^^^^^^^^^ -------
71 error[E0308]: mismatched types
72 --> $DIR/invalid_arguments.rs:20:16
74 LL | two_arg_diff("", 1.0);
75 | ------------ ^^ expected `i32`, found `&str`
77 | arguments to this function are incorrect
79 note: function defined here
80 --> $DIR/invalid_arguments.rs:7:4
82 LL | fn two_arg_diff(_a: i32, _b: f32) {}
83 | ^^^^^^^^^^^^ -------
85 error[E0308]: arguments to this function are incorrect
86 --> $DIR/invalid_arguments.rs:21:3
88 LL | two_arg_diff("", "");
89 | ^^^^^^^^^^^^ -- -- expected `f32`, found `&str`
91 | expected `i32`, found `&str`
93 note: function defined here
94 --> $DIR/invalid_arguments.rs:7:4
96 LL | fn two_arg_diff(_a: i32, _b: f32) {}
97 | ^^^^^^^^^^^^ ------- -------
99 error[E0308]: mismatched types
100 --> $DIR/invalid_arguments.rs:24:18
102 LL | three_arg_diff(X{}, 1.0, "");
103 | -------------- ^^^ expected `i32`, found struct `X`
105 | arguments to this function are incorrect
107 note: function defined here
108 --> $DIR/invalid_arguments.rs:8:4
110 LL | fn three_arg_diff(_a: i32, _b: f32, _c: &str) {}
111 | ^^^^^^^^^^^^^^ -------
113 error[E0308]: mismatched types
114 --> $DIR/invalid_arguments.rs:25:21
116 LL | three_arg_diff(1, X {}, "");
117 | -------------- ^^^^ expected `f32`, found struct `X`
119 | arguments to this function are incorrect
121 note: function defined here
122 --> $DIR/invalid_arguments.rs:8:4
124 LL | fn three_arg_diff(_a: i32, _b: f32, _c: &str) {}
125 | ^^^^^^^^^^^^^^ -------
127 error[E0308]: mismatched types
128 --> $DIR/invalid_arguments.rs:26:26
130 LL | three_arg_diff(1, 1.0, X {});
131 | -------------- ^^^^ expected `&str`, found struct `X`
133 | arguments to this function are incorrect
135 note: function defined here
136 --> $DIR/invalid_arguments.rs:8:4
138 LL | fn three_arg_diff(_a: i32, _b: f32, _c: &str) {}
139 | ^^^^^^^^^^^^^^ --------
141 error[E0308]: arguments to this function are incorrect
142 --> $DIR/invalid_arguments.rs:28:3
144 LL | three_arg_diff(X {}, X {}, "");
145 | ^^^^^^^^^^^^^^ ---- ---- expected `f32`, found struct `X`
147 | expected `i32`, found struct `X`
149 note: function defined here
150 --> $DIR/invalid_arguments.rs:8:4
152 LL | fn three_arg_diff(_a: i32, _b: f32, _c: &str) {}
153 | ^^^^^^^^^^^^^^ ------- ------- --------
155 error[E0308]: arguments to this function are incorrect
156 --> $DIR/invalid_arguments.rs:29:3
158 LL | three_arg_diff(X {}, 1.0, X {});
159 | ^^^^^^^^^^^^^^ ---- ---- expected `&str`, found struct `X`
161 | expected `i32`, found struct `X`
163 note: function defined here
164 --> $DIR/invalid_arguments.rs:8:4
166 LL | fn three_arg_diff(_a: i32, _b: f32, _c: &str) {}
167 | ^^^^^^^^^^^^^^ ------- ------- --------
169 error[E0308]: arguments to this function are incorrect
170 --> $DIR/invalid_arguments.rs:30:3
172 LL | three_arg_diff(1, X {}, X {});
173 | ^^^^^^^^^^^^^^ ---- ---- expected `&str`, found struct `X`
175 | expected `f32`, found struct `X`
177 note: function defined here
178 --> $DIR/invalid_arguments.rs:8:4
180 LL | fn three_arg_diff(_a: i32, _b: f32, _c: &str) {}
181 | ^^^^^^^^^^^^^^ ------- ------- --------
183 error[E0308]: arguments to this function are incorrect
184 --> $DIR/invalid_arguments.rs:32:3
186 LL | three_arg_diff(X {}, X {}, X {});
187 | ^^^^^^^^^^^^^^ ---- ---- ---- expected `&str`, found struct `X`
189 | | expected `f32`, found struct `X`
190 | expected `i32`, found struct `X`
192 note: function defined here
193 --> $DIR/invalid_arguments.rs:8:4
195 LL | fn three_arg_diff(_a: i32, _b: f32, _c: &str) {}
196 | ^^^^^^^^^^^^^^ ------- ------- --------
198 error[E0308]: mismatched types
199 --> $DIR/invalid_arguments.rs:34:20
201 LL | three_arg_repeat(X {}, 1, "");
202 | ---------------- ^^^^ expected `i32`, found struct `X`
204 | arguments to this function are incorrect
206 note: function defined here
207 --> $DIR/invalid_arguments.rs:9:4
209 LL | fn three_arg_repeat(_a: i32, _b: i32, _c: &str) {}
210 | ^^^^^^^^^^^^^^^^ -------
212 error[E0308]: mismatched types
213 --> $DIR/invalid_arguments.rs:35:23
215 LL | three_arg_repeat(1, X {}, "");
216 | ---------------- ^^^^ expected `i32`, found struct `X`
218 | arguments to this function are incorrect
220 note: function defined here
221 --> $DIR/invalid_arguments.rs:9:4
223 LL | fn three_arg_repeat(_a: i32, _b: i32, _c: &str) {}
224 | ^^^^^^^^^^^^^^^^ -------
226 error[E0308]: mismatched types
227 --> $DIR/invalid_arguments.rs:36:26
229 LL | three_arg_repeat(1, 1, X {});
230 | ---------------- ^^^^ expected `&str`, found struct `X`
232 | arguments to this function are incorrect
234 note: function defined here
235 --> $DIR/invalid_arguments.rs:9:4
237 LL | fn three_arg_repeat(_a: i32, _b: i32, _c: &str) {}
238 | ^^^^^^^^^^^^^^^^ --------
240 error[E0308]: arguments to this function are incorrect
241 --> $DIR/invalid_arguments.rs:38:3
243 LL | three_arg_repeat(X {}, X {}, "");
244 | ^^^^^^^^^^^^^^^^ ---- ---- expected `i32`, found struct `X`
246 | expected `i32`, found struct `X`
248 note: function defined here
249 --> $DIR/invalid_arguments.rs:9:4
251 LL | fn three_arg_repeat(_a: i32, _b: i32, _c: &str) {}
252 | ^^^^^^^^^^^^^^^^ ------- ------- --------
254 error[E0308]: arguments to this function are incorrect
255 --> $DIR/invalid_arguments.rs:39:3
257 LL | three_arg_repeat(X {}, 1, X {});
258 | ^^^^^^^^^^^^^^^^ ---- ---- expected `&str`, found struct `X`
260 | expected `i32`, found struct `X`
262 note: function defined here
263 --> $DIR/invalid_arguments.rs:9:4
265 LL | fn three_arg_repeat(_a: i32, _b: i32, _c: &str) {}
266 | ^^^^^^^^^^^^^^^^ ------- ------- --------
268 error[E0308]: arguments to this function are incorrect
269 --> $DIR/invalid_arguments.rs:40:3
271 LL | three_arg_repeat(1, X {}, X{});
272 | ^^^^^^^^^^^^^^^^ ---- --- expected `&str`, found struct `X`
274 | expected `i32`, found struct `X`
276 note: function defined here
277 --> $DIR/invalid_arguments.rs:9:4
279 LL | fn three_arg_repeat(_a: i32, _b: i32, _c: &str) {}
280 | ^^^^^^^^^^^^^^^^ ------- ------- --------
282 error[E0308]: arguments to this function are incorrect
283 --> $DIR/invalid_arguments.rs:42:3
285 LL | three_arg_repeat(X {}, X {}, X {});
286 | ^^^^^^^^^^^^^^^^ ---- ---- ---- expected `&str`, found struct `X`
288 | | expected `i32`, found struct `X`
289 | expected `i32`, found struct `X`
291 note: function defined here
292 --> $DIR/invalid_arguments.rs:9:4
294 LL | fn three_arg_repeat(_a: i32, _b: i32, _c: &str) {}
295 | ^^^^^^^^^^^^^^^^ ------- ------- --------
297 error: aborting due to 21 previous errors
299 For more information about this error, try `rustc --explain E0308`.