1 error[E0061]: this function takes 2 arguments but 3 arguments were supplied
2 --> $DIR/mixed_cases.rs:10:3
4 LL | two_args(1, "", X {});
5 | ^^^^^^^^ -- ---- argument of type `X` unexpected
7 | expected `f32`, found `&str`
9 note: function defined here
10 --> $DIR/mixed_cases.rs:5:4
12 LL | fn two_args(_a: i32, _b: f32) {}
13 | ^^^^^^^^ ------- -------
14 help: remove the extra argument
16 LL | two_args(1, /* f32 */);
19 error[E0061]: this function takes 3 arguments but 4 arguments were supplied
20 --> $DIR/mixed_cases.rs:11:3
22 LL | three_args(1, "", X {}, "");
23 | ^^^^^^^^^^ -- ---- -- argument of type `&'static str` unexpected
25 | | argument of type `X` unexpected
26 | an argument of type `f32` is missing
28 note: function defined here
29 --> $DIR/mixed_cases.rs:6:4
31 LL | fn three_args(_a: i32, _b: f32, _c: &str) {}
32 | ^^^^^^^^^^ ------- ------- --------
35 LL | three_args(1, /* f32 */, "");
38 error[E0061]: this function takes 3 arguments but 2 arguments were supplied
39 --> $DIR/mixed_cases.rs:14:3
41 LL | three_args(1, X {});
44 | | expected `f32`, found struct `X`
45 | an argument of type `&str` is missing
47 note: function defined here
48 --> $DIR/mixed_cases.rs:6:4
50 LL | fn three_args(_a: i32, _b: f32, _c: &str) {}
51 | ^^^^^^^^^^ ------- ------- --------
52 help: provide the argument
54 LL | three_args(1, /* f32 */, /* &str */);
55 | ~~~~~~~~~~~~~~~~~~~~~~~~~~
57 error[E0308]: arguments to this function are incorrect
58 --> $DIR/mixed_cases.rs:17:3
60 LL | three_args(1, "", X {});
61 | ^^^^^^^^^^ -- ---- argument of type `X` unexpected
63 | an argument of type `f32` is missing
65 note: function defined here
66 --> $DIR/mixed_cases.rs:6:4
68 LL | fn three_args(_a: i32, _b: f32, _c: &str) {}
69 | ^^^^^^^^^^ ------- ------- --------
72 LL | three_args(1, /* f32 */, "");
75 error[E0308]: arguments to this function are incorrect
76 --> $DIR/mixed_cases.rs:20:3
78 LL | three_args("", X {}, 1);
79 | ^^^^^^^^^^ -- ---- - expected `&str`, found `{integer}`
81 | | expected `f32`, found struct `X`
82 | expected `i32`, found `&'static str`
84 note: function defined here
85 --> $DIR/mixed_cases.rs:6:4
87 LL | fn three_args(_a: i32, _b: f32, _c: &str) {}
88 | ^^^^^^^^^^ ------- ------- --------
89 help: swap these arguments
91 LL | three_args(1, /* f32 */, "");
94 error[E0061]: this function takes 3 arguments but 2 arguments were supplied
95 --> $DIR/mixed_cases.rs:23:3
97 LL | three_args("", 1);
100 | | an argument of type `f32` is missing
101 | | expected `&str`, found `{integer}`
102 | expected `i32`, found `&'static str`
104 note: function defined here
105 --> $DIR/mixed_cases.rs:6:4
107 LL | fn three_args(_a: i32, _b: f32, _c: &str) {}
108 | ^^^^^^^^^^ ------- ------- --------
111 LL | three_args(1, /* f32 */, "");
114 error: aborting due to 6 previous errors
116 Some errors have detailed explanations: E0061, E0308.
117 For more information about an error, try `rustc --explain E0061`.