1 // Some basic "obvious" cases for the heuristic error messages added for #65853
2 // One for each of the detected cases
13 fn invalid(_i: u32) {}
15 fn missing(_i: u32) {}
16 fn swapped(_i: u32, _s: &str) {}
17 fn permuted(_x: X, _y: Y, _z: Z) {}
20 invalid(1.0); //~ ERROR mismatched types
21 extra(""); //~ ERROR this function takes
22 missing(); //~ ERROR this function takes
23 swapped("", 1); //~ ERROR arguments to this function are incorrect
24 permuted(Y {}, Z {}, X {}); //~ ERROR arguments to this function are incorrect
27 closure(); //~ ERROR this function takes