]>
Commit | Line | Data |
---|---|---|
04454e1e FG |
1 | // More complicated permutations |
2 | struct X {} | |
3 | struct Y {} | |
4 | ||
5 | fn three_args(_a: i32, _b: f32, _c: &str) {} | |
6 | fn many_args(_a: i32, _b: f32, _c: &str, _d: X, _e: Y) {} | |
7 | ||
8 | fn main() { | |
9 | // b, c, a | |
923072b8 | 10 | three_args(1.0, "", 1); //~ ERROR arguments to this function are incorrect |
04454e1e | 11 | // d, e, b, a, c |
923072b8 | 12 | many_args(X {}, Y {}, 1, 1.0, ""); //~ ERROR arguments to this function are incorrect |
04454e1e | 13 | } |