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