]> git.lizzy.rs Git - rust.git/blob - tests/ui/not-enough-arguments.stderr
Rollup merge of #107769 - compiler-errors:pointer-like, r=eholk
[rust.git] / tests / ui / not-enough-arguments.stderr
1 error[E0061]: this function takes 4 arguments but 3 arguments were supplied
2   --> $DIR/not-enough-arguments.rs:27:3
3    |
4 LL |   foo(1, 2, 3);
5    |   ^^^--------- an argument of type `isize` is missing
6    |
7 note: function defined here
8   --> $DIR/not-enough-arguments.rs:5:4
9    |
10 LL | fn foo(a: isize, b: isize, c: isize, d:isize) {
11    |    ^^^ --------  --------  --------  -------
12 help: provide the argument
13    |
14 LL |   foo(1, 2, 3, /* isize */);
15    |      ~~~~~~~~~~~~~~~~~~~~~~
16
17 error[E0061]: this function takes 6 arguments but 3 arguments were supplied
18   --> $DIR/not-enough-arguments.rs:29:3
19    |
20 LL |   bar(1, 2, 3);
21    |   ^^^--------- three arguments of type `i32`, `i32`, and `i32` are missing
22    |
23 note: function defined here
24   --> $DIR/not-enough-arguments.rs:10:4
25    |
26 LL | fn bar(
27    |    ^^^
28 LL |     a: i32,
29    |     ------
30 LL |     b: i32,
31    |     ------
32 LL |     c: i32,
33    |     ------
34 LL |     d: i32,
35    |     ------
36 LL |     e: i32,
37    |     ------
38 LL |     f: i32,
39    |     ------
40 help: provide the arguments
41    |
42 LL |   bar(1, 2, 3, /* i32 */, /* i32 */, /* i32 */);
43    |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
44
45 error: aborting due to 2 previous errors
46
47 For more information about this error, try `rustc --explain E0061`.