]>
Commit | Line | Data |
---|---|---|
923072b8 FG |
1 | error[E0308]: arguments to this function are incorrect |
2 | --> $DIR/permuted_arguments.rs:10:3 | |
04454e1e FG |
3 | | |
4 | LL | three_args(1.0, "", 1); | |
923072b8 FG |
5 | | ^^^^^^^^^^ --- -- - expected `&str`, found `{integer}` |
6 | | | | | |
7 | | | expected `f32`, found `&'static str` | |
8 | | expected `i32`, found `{float}` | |
04454e1e | 9 | | |
923072b8 FG |
10 | note: function defined here |
11 | --> $DIR/permuted_arguments.rs:5:4 | |
04454e1e | 12 | | |
923072b8 FG |
13 | LL | fn three_args(_a: i32, _b: f32, _c: &str) {} |
14 | | ^^^^^^^^^^ ------- ------- -------- | |
15 | help: reorder these arguments | |
04454e1e | 16 | | |
923072b8 | 17 | LL | three_args(1, 1.0, ""); |
f2b60f7d | 18 | | ~~~~~~~~~~~~ |
04454e1e | 19 | |
923072b8 FG |
20 | error[E0308]: arguments to this function are incorrect |
21 | --> $DIR/permuted_arguments.rs:12:3 | |
04454e1e FG |
22 | | |
23 | LL | many_args(X {}, Y {}, 1, 1.0, ""); | |
923072b8 FG |
24 | | ^^^^^^^^^ ---- ---- - --- -- expected `Y`, found `&'static str` |
25 | | | | | | | |
26 | | | | | expected `X`, found `{float}` | |
27 | | | | expected `&str`, found `{integer}` | |
28 | | | expected `f32`, found `Y` | |
29 | | expected `i32`, found `X` | |
04454e1e | 30 | | |
923072b8 FG |
31 | note: function defined here |
32 | --> $DIR/permuted_arguments.rs:6:4 | |
04454e1e | 33 | | |
923072b8 FG |
34 | LL | fn many_args(_a: i32, _b: f32, _c: &str, _d: X, _e: Y) {} |
35 | | ^^^^^^^^^ ------- ------- -------- ----- ----- | |
36 | help: reorder these arguments | |
04454e1e | 37 | | |
923072b8 | 38 | LL | many_args(1, 1.0, "", X {}, Y {}); |
f2b60f7d | 39 | | ~~~~~~~~~~~~~~~~~~~~~~~~ |
04454e1e | 40 | |
923072b8 | 41 | error: aborting due to 2 previous errors |
04454e1e FG |
42 | |
43 | For more information about this error, try `rustc --explain E0308`. |