]> git.lizzy.rs Git - rust.git/blob - src/test/ui/argument-suggestions/permuted_arguments.rs
Make some diagnostics not depend on the source of what they reference being available
[rust.git] / src / test / 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 }