]> git.lizzy.rs Git - rust.git/blob - src/test/ui/not-enough-arguments.rs
Rollup merge of #57278 - mati865:config_clippy, r=alexcrichton
[rust.git] / src / test / ui / not-enough-arguments.rs
1 // Check that the only error msg we report is the
2 // mismatch between the # of params, and not other
3 // unrelated errors.
4
5 fn foo(a: isize, b: isize, c: isize, d:isize) {
6   panic!();
7 }
8
9 fn main() {
10   foo(1, 2, 3);
11   //~^ ERROR this function takes 4 parameters but 3
12 }