]> git.proxmox.com Git - rustc.git/blame - src/test/ui/argument-suggestions/permuted_arguments.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / argument-suggestions / permuted_arguments.rs
CommitLineData
04454e1e
FG
1// More complicated permutations
2struct X {}
3struct Y {}
4
5fn three_args(_a: i32, _b: f32, _c: &str) {}
6fn many_args(_a: i32, _b: f32, _c: &str, _d: X, _e: Y) {}
7
8fn 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}