]> git.lizzy.rs Git - rust.git/blob - src/test/ui/not-enough-arguments.stderr
Rollup merge of #87440 - twetzel59:fix-barrier-no-op, r=yaahc
[rust.git] / src / test / 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    |   ^^^ -  -  - supplied 3 arguments
6    |   |
7    |   expected 4 arguments
8    |
9 note: function defined here
10   --> $DIR/not-enough-arguments.rs:5:4
11    |
12 LL | fn foo(a: isize, b: isize, c: isize, d:isize) {
13    |    ^^^ --------  --------  --------  -------
14
15 error[E0061]: this function takes 6 arguments but 3 arguments were supplied
16   --> $DIR/not-enough-arguments.rs:29:3
17    |
18 LL |   bar(1, 2, 3);
19    |   ^^^ -  -  - supplied 3 arguments
20    |   |
21    |   expected 6 arguments
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
41 error: aborting due to 2 previous errors
42
43 For more information about this error, try `rustc --explain E0061`.