fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0308]: arguments to this function are incorrect 2 --> $DIR/permuted_arguments.rs:10:3 3 | 4LL | three_args(1.0, "", 1); 5 | ^^^^^^^^^^ --- -- - expected `&str`, found `{integer}` 6 | | | 7 | | expected `f32`, found `&'static str` 8 | expected `i32`, found `{float}` 9 | 10note: function defined here 11 --> $DIR/permuted_arguments.rs:5:4 12 | 13LL | fn three_args(_a: i32, _b: f32, _c: &str) {} 14 | ^^^^^^^^^^ ------- ------- -------- 15help: reorder these arguments 16 | 17LL | three_args(1, 1.0, ""); 18 | ~~~~~~~~~~~~ 19 20error[E0308]: arguments to this function are incorrect 21 --> $DIR/permuted_arguments.rs:12:3 22 | 23LL | many_args(X {}, Y {}, 1, 1.0, ""); 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` 30 | 31note: function defined here 32 --> $DIR/permuted_arguments.rs:6:4 33 | 34LL | fn many_args(_a: i32, _b: f32, _c: &str, _d: X, _e: Y) {} 35 | ^^^^^^^^^ ------- ------- -------- ----- ----- 36help: reorder these arguments 37 | 38LL | many_args(1, 1.0, "", X {}, Y {}); 39 | ~~~~~~~~~~~~~~~~~~~~~~~~ 40 41error: aborting due to 2 previous errors 42 43For more information about this error, try `rustc --explain E0308`.