Debian Codegraph @

gcc/testsuite/rust/compile/wrong_no_of_parameters.rs

raw
1 // https://doc.rust-lang.org/error_codes/E0061.html
2 fn main() {
3 fn f(u: i32) {}
4 fn T(u: i32, v: i32, w: i32, x: i32, y: i32, z: i32) {}
5
6 f(); // { dg-error "this function takes 1 argument but 0 arguments were supplied" }
7
8 T(1, 2, 3, 4, 5, 6, 7, 8, 9); // { dg-error "this function takes 6 arguments but 9 arguments were supplied" }
9 }