fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0308]: arguments to this function are incorrect 2 --> $DIR/swapped_arguments.rs:8:3 3 | 4LL | two_args(1.0, 1); 5 | ^^^^^^^^ --- - expected `f32`, found `{integer}` 6 | | 7 | expected `i32`, found `{float}` 8 | 9note: function defined here 10 --> $DIR/swapped_arguments.rs:3:4 11 | 12LL | fn two_args(_a: i32, _b: f32) {} 13 | ^^^^^^^^ ------- ------- 14help: swap these arguments 15 | 16LL | two_args(1, 1.0); 17 | ~~~~~~~~ 18 19error[E0308]: arguments to this function are incorrect 20 --> $DIR/swapped_arguments.rs:9:3 21 | 22LL | three_args(1.0, 1, ""); 23 | ^^^^^^^^^^ --- - expected `f32`, found `{integer}` 24 | | 25 | expected `i32`, found `{float}` 26 | 27note: function defined here 28 --> $DIR/swapped_arguments.rs:4:4 29 | 30LL | fn three_args(_a: i32, _b: f32, _c: &str) {} 31 | ^^^^^^^^^^ ------- ------- -------- 32help: swap these arguments 33 | 34LL | three_args(1, 1.0, ""); 35 | ~~~~~~~~~~~~ 36 37error[E0308]: arguments to this function are incorrect 38 --> $DIR/swapped_arguments.rs:10:3 39 | 40LL | three_args( 1, "", 1.0); 41 | ^^^^^^^^^^ -- --- expected `&str`, found `{float}` 42 | | 43 | expected `f32`, found `&'static str` 44 | 45note: function defined here 46 --> $DIR/swapped_arguments.rs:4:4 47 | 48LL | fn three_args(_a: i32, _b: f32, _c: &str) {} 49 | ^^^^^^^^^^ ------- ------- -------- 50help: swap these arguments 51 | 52LL | three_args(1, 1.0, ""); 53 | ~~~~~~~~~~~~ 54 55error[E0308]: arguments to this function are incorrect 56 --> $DIR/swapped_arguments.rs:11:3 57 | 58LL | three_args( "", 1.0, 1); 59 | ^^^^^^^^^^ -- - expected `&str`, found `{integer}` 60 | | 61 | expected `i32`, found `&'static str` 62 | 63note: function defined here 64 --> $DIR/swapped_arguments.rs:4:4 65 | 66LL | fn three_args(_a: i32, _b: f32, _c: &str) {} 67 | ^^^^^^^^^^ ------- ------- -------- 68help: swap these arguments 69 | 70LL | three_args(1, 1.0, ""); 71 | ~~~~~~~~~~~~ 72 73error[E0308]: arguments to this function are incorrect 74 --> $DIR/swapped_arguments.rs:13:3 75 | 76LL | four_args(1.0, 1, X {}, ""); 77 | ^^^^^^^^^ --- - ---- -- expected `X`, found `&'static str` 78 | | | | 79 | | | expected `&str`, found `X` 80 | | expected `f32`, found `{integer}` 81 | expected `i32`, found `{float}` 82 | 83note: function defined here 84 --> $DIR/swapped_arguments.rs:5:4 85 | 86LL | fn four_args(_a: i32, _b: f32, _c: &str, _d: X) {} 87 | ^^^^^^^^^ ------- ------- -------- ----- 88help: did you mean 89 | 90LL | four_args(1, 1.0, "", X {}); 91 | ~~~~~~~~~~~~~~~~~~ 92 93error: aborting due to 5 previous errors 94 95For more information about this error, try `rustc --explain E0308`.