11error[E0061]: this function takes 2 arguments but 1 argument was supplied
2- --> $DIR/not-enough-arguments.rs:27 :9
2+ --> $DIR/not-enough-arguments.rs:24 :9
33 |
4- LL | delegate!(foo);
5- | ^^^^^^^^^^^^^^ argument #2 of type `u8` is missing
4+ LL | <Self>::$method(8)
5+ | ^^^^^^^^^^^^^^^--- argument #2 of type `u8` is missing
6+ ...
7+ LL | delegate_local!(foo);
8+ | -------------------- in this macro invocation
69 |
710note: associated function defined here
8- --> $DIR/not-enough-arguments.rs:25 :8
11+ --> $DIR/not-enough-arguments.rs:32 :8
912 |
1013LL | fn foo(a: u8, b: u8) {}
1114 | ^^^ -----
12- = note: this error originates in the macro `delegate ` (in Nightly builds, run with -Z macro-backtrace for more info)
15+ = note: this error originates in the macro `delegate_local ` (in Nightly builds, run with -Z macro-backtrace for more info)
1316help: provide the argument
14- --> $DIR/auxiliary/delegate_macro.rs:4:26
1517 |
1618LL | <Self>::$method(8, /* u8 */)
1719 | ++++++++++
1820
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+
1934error[E0061]: this function takes 4 arguments but 3 arguments were supplied
20- --> $DIR/not-enough-arguments.rs:33 :5
35+ --> $DIR/not-enough-arguments.rs:41 :5
2136 |
2237LL | foo(1, 2, 3);
2338 | ^^^--------- argument #4 of type `isize` is missing
@@ -33,7 +48,7 @@ LL | foo(1, 2, 3, /* isize */);
3348 | +++++++++++++
3449
3550error[E0061]: this function takes 6 arguments but 3 arguments were supplied
36- --> $DIR/not-enough-arguments.rs:35 :5
51+ --> $DIR/not-enough-arguments.rs:43 :5
3752 |
3853LL | bar(1, 2, 3);
3954 | ^^^--------- three arguments of type `i32`, `i32`, and `i32` are missing
@@ -48,6 +63,6 @@ help: provide the arguments
4863LL | bar(1, 2, 3, /* i32 */, /* i32 */, /* i32 */);
4964 | +++++++++++++++++++++++++++++++++
5065
51- error: aborting due to 3 previous errors
66+ error: aborting due to 4 previous errors
5267
5368For more information about this error, try `rustc --explain E0061`.
0 commit comments