]> git.proxmox.com Git - rustc.git/blob - tests/ui/argument-suggestions/permuted_arguments.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / argument-suggestions / permuted_arguments.rs
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
10 three_args(1.0, "", 1); //~ ERROR arguments to this function are incorrect
11 // d, e, b, a, c
12 many_args(X {}, Y {}, 1, 1.0, ""); //~ ERROR arguments to this function are incorrect
13 }