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