|
| 1 | +error[E0061]: this function takes 2 arguments but 1 argument was supplied |
| 2 | + --> $DIR/not-enough-arguments.rs:24:9 |
| 3 | + | |
| 4 | +LL | <Self>::$method(8) |
| 5 | + | ^^^^^^^^^^^^^^^--- argument #2 of type `u8` is missing |
| 6 | +... |
| 7 | +LL | delegate_local!(foo); |
| 8 | + | -------------------- in this macro invocation |
| 9 | + | |
| 10 | +note: associated function defined here |
| 11 | + --> $DIR/not-enough-arguments.rs:32:8 |
| 12 | + | |
| 13 | +LL | fn foo(a: u8, b: u8) {} |
| 14 | + | ^^^ ----- |
| 15 | + = note: this error originates in the macro `delegate_local` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 16 | +help: provide the argument |
| 17 | + | |
| 18 | +LL | <Self>::$method(8, /* u8 */) |
| 19 | + | ++++++++++ |
| 20 | + |
| 21 | +error[E0061]: this function takes 2 arguments but 1 argument was supplied |
| 22 | + --> $DIR/not-enough-arguments.rs:35:9 |
| 23 | + | |
| 24 | +LL | delegate!(foo); |
| 25 | + | ^^^^^^^^^^^^^^ argument #2 of type `u8` is missing |
| 26 | + | |
| 27 | +note: associated function defined here |
| 28 | + --> $DIR/not-enough-arguments.rs:32:8 |
| 29 | + | |
| 30 | +LL | fn foo(a: u8, b: u8) {} |
| 31 | + | ^^^ ----- |
| 32 | + = note: this error originates in the macro `delegate` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 33 | + |
1 | 34 | error[E0061]: this function takes 4 arguments but 3 arguments were supplied |
2 | | - --> $DIR/not-enough-arguments.rs:27:3 |
| 35 | + --> $DIR/not-enough-arguments.rs:41:5 |
3 | 36 | | |
4 | | -LL | foo(1, 2, 3); |
5 | | - | ^^^--------- argument #4 of type `isize` is missing |
| 37 | +LL | foo(1, 2, 3); |
| 38 | + | ^^^--------- argument #4 of type `isize` is missing |
6 | 39 | | |
7 | 40 | note: function defined here |
8 | | - --> $DIR/not-enough-arguments.rs:5:4 |
| 41 | + --> $DIR/not-enough-arguments.rs:8:4 |
9 | 42 | | |
10 | | -LL | fn foo(a: isize, b: isize, c: isize, d:isize) { |
11 | | - | ^^^ ------- |
| 43 | +LL | fn foo(a: isize, b: isize, c: isize, d: isize) { |
| 44 | + | ^^^ -------- |
12 | 45 | help: provide the argument |
13 | 46 | | |
14 | | -LL | foo(1, 2, 3, /* isize */); |
15 | | - | +++++++++++++ |
| 47 | +LL | foo(1, 2, 3, /* isize */); |
| 48 | + | +++++++++++++ |
16 | 49 |
|
17 | 50 | error[E0061]: this function takes 6 arguments but 3 arguments were supplied |
18 | | - --> $DIR/not-enough-arguments.rs:29:3 |
| 51 | + --> $DIR/not-enough-arguments.rs:43:5 |
19 | 52 | | |
20 | | -LL | bar(1, 2, 3); |
21 | | - | ^^^--------- three arguments of type `i32`, `i32`, and `i32` are missing |
| 53 | +LL | bar(1, 2, 3); |
| 54 | + | ^^^--------- three arguments of type `i32`, `i32`, and `i32` are missing |
22 | 55 | | |
23 | 56 | note: function defined here |
24 | | - --> $DIR/not-enough-arguments.rs:10:4 |
| 57 | + --> $DIR/not-enough-arguments.rs:13:4 |
25 | 58 | | |
26 | | -LL | fn bar( |
27 | | - | ^^^ |
28 | | -... |
29 | | -LL | d: i32, |
30 | | - | ------ |
31 | | -LL | e: i32, |
32 | | - | ------ |
33 | | -LL | f: i32, |
34 | | - | ------ |
| 59 | +LL | fn bar(a: i32, b: i32, c: i32, d: i32, e: i32, f: i32) { |
| 60 | + | ^^^ ------ ------ ------ |
35 | 61 | help: provide the arguments |
36 | 62 | | |
37 | | -LL | bar(1, 2, 3, /* i32 */, /* i32 */, /* i32 */); |
38 | | - | +++++++++++++++++++++++++++++++++ |
| 63 | +LL | bar(1, 2, 3, /* i32 */, /* i32 */, /* i32 */); |
| 64 | + | +++++++++++++++++++++++++++++++++ |
39 | 65 |
|
40 | | -error: aborting due to 2 previous errors |
| 66 | +error: aborting due to 4 previous errors |
41 | 67 |
|
42 | 68 | For more information about this error, try `rustc --explain E0061`. |
0 commit comments