]>
Commit | Line | Data |
---|---|---|
04454e1e FG |
1 | error[E0061]: this function takes 2 arguments but 3 arguments were supplied |
2 | --> $DIR/mixed_cases.rs:10:3 | |
3 | | | |
4 | LL | two_args(1, "", X {}); | |
9ffffee4 | 5 | | ^^^^^^^^ -- ---- unexpected argument of type `X` |
923072b8 FG |
6 | | | |
7 | | expected `f32`, found `&str` | |
04454e1e FG |
8 | | |
9 | note: function defined here | |
10 | --> $DIR/mixed_cases.rs:5:4 | |
11 | | | |
12 | LL | fn two_args(_a: i32, _b: f32) {} | |
13 | | ^^^^^^^^ ------- ------- | |
923072b8 FG |
14 | help: remove the extra argument |
15 | | | |
9ffffee4 FG |
16 | LL - two_args(1, "", X {}); |
17 | LL + two_args(1, /* f32 */); | |
18 | | | |
04454e1e FG |
19 | |
20 | error[E0061]: this function takes 3 arguments but 4 arguments were supplied | |
21 | --> $DIR/mixed_cases.rs:11:3 | |
22 | | | |
23 | LL | three_args(1, "", X {}, ""); | |
9ffffee4 | 24 | | ^^^^^^^^^^ -- ---- -- unexpected argument of type `&'static str` |
923072b8 | 25 | | | | |
9ffffee4 | 26 | | | unexpected argument of type `X` |
923072b8 | 27 | | an argument of type `f32` is missing |
04454e1e FG |
28 | | |
29 | note: function defined here | |
30 | --> $DIR/mixed_cases.rs:6:4 | |
31 | | | |
32 | LL | fn three_args(_a: i32, _b: f32, _c: &str) {} | |
33 | | ^^^^^^^^^^ ------- ------- -------- | |
923072b8 FG |
34 | help: did you mean |
35 | | | |
36 | LL | three_args(1, /* f32 */, ""); | |
f2b60f7d | 37 | | ~~~~~~~~~~~~~~~~~~ |
04454e1e FG |
38 | |
39 | error[E0061]: this function takes 3 arguments but 2 arguments were supplied | |
40 | --> $DIR/mixed_cases.rs:14:3 | |
41 | | | |
42 | LL | three_args(1, X {}); | |
923072b8 FG |
43 | | ^^^^^^^^^^--------- |
44 | | | | | |
9ffffee4 | 45 | | | expected `f32`, found `X` |
923072b8 | 46 | | an argument of type `&str` is missing |
04454e1e FG |
47 | | |
48 | note: function defined here | |
49 | --> $DIR/mixed_cases.rs:6:4 | |
50 | | | |
51 | LL | fn three_args(_a: i32, _b: f32, _c: &str) {} | |
52 | | ^^^^^^^^^^ ------- ------- -------- | |
923072b8 | 53 | help: provide the argument |
04454e1e | 54 | | |
923072b8 | 55 | LL | three_args(1, /* f32 */, /* &str */); |
f2b60f7d | 56 | | ~~~~~~~~~~~~~~~~~~~~~~~~~~ |
04454e1e | 57 | |
923072b8 FG |
58 | error[E0308]: arguments to this function are incorrect |
59 | --> $DIR/mixed_cases.rs:17:3 | |
04454e1e FG |
60 | | |
61 | LL | three_args(1, "", X {}); | |
9ffffee4 | 62 | | ^^^^^^^^^^ -- ---- unexpected argument of type `X` |
923072b8 FG |
63 | | | |
64 | | an argument of type `f32` is missing | |
04454e1e | 65 | | |
923072b8 FG |
66 | note: function defined here |
67 | --> $DIR/mixed_cases.rs:6:4 | |
04454e1e | 68 | | |
923072b8 FG |
69 | LL | fn three_args(_a: i32, _b: f32, _c: &str) {} |
70 | | ^^^^^^^^^^ ------- ------- -------- | |
71 | help: did you mean | |
72 | | | |
73 | LL | three_args(1, /* f32 */, ""); | |
f2b60f7d | 74 | | ~~~~~~~~~~~~~~~~~~ |
04454e1e | 75 | |
923072b8 FG |
76 | error[E0308]: arguments to this function are incorrect |
77 | --> $DIR/mixed_cases.rs:20:3 | |
04454e1e FG |
78 | | |
79 | LL | three_args("", X {}, 1); | |
923072b8 FG |
80 | | ^^^^^^^^^^ -- ---- - expected `&str`, found `{integer}` |
81 | | | | | |
9ffffee4 | 82 | | | expected `f32`, found `X` |
923072b8 FG |
83 | | expected `i32`, found `&'static str` |
84 | | | |
85 | note: function defined here | |
86 | --> $DIR/mixed_cases.rs:6:4 | |
87 | | | |
88 | LL | fn three_args(_a: i32, _b: f32, _c: &str) {} | |
89 | | ^^^^^^^^^^ ------- ------- -------- | |
90 | help: swap these arguments | |
91 | | | |
92 | LL | three_args(1, /* f32 */, ""); | |
f2b60f7d | 93 | | ~~~~~~~~~~~~~~~~~~ |
04454e1e FG |
94 | |
95 | error[E0061]: this function takes 3 arguments but 2 arguments were supplied | |
923072b8 | 96 | --> $DIR/mixed_cases.rs:23:3 |
04454e1e FG |
97 | | |
98 | LL | three_args("", 1); | |
923072b8 FG |
99 | | ^^^^^^^^^^ -- - |
100 | | | | | |
101 | | | an argument of type `f32` is missing | |
102 | | | expected `&str`, found `{integer}` | |
103 | | expected `i32`, found `&'static str` | |
04454e1e FG |
104 | | |
105 | note: function defined here | |
106 | --> $DIR/mixed_cases.rs:6:4 | |
107 | | | |
108 | LL | fn three_args(_a: i32, _b: f32, _c: &str) {} | |
109 | | ^^^^^^^^^^ ------- ------- -------- | |
923072b8 FG |
110 | help: did you mean |
111 | | | |
112 | LL | three_args(1, /* f32 */, ""); | |
f2b60f7d | 113 | | ~~~~~~~~~~~~~~~~~~ |
04454e1e | 114 | |
923072b8 | 115 | error: aborting due to 6 previous errors |
04454e1e FG |
116 | |
117 | Some errors have detailed explanations: E0061, E0308. | |
118 | For more information about an error, try `rustc --explain E0061`. |