1
1
error[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
3
3
|
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
6
9
|
7
10
note: associated function defined here
8
- --> $DIR/not-enough-arguments.rs:25 :8
11
+ --> $DIR/not-enough-arguments.rs:32 :8
9
12
|
10
13
LL | fn foo(a: u8, b: u8) {}
11
14
| ^^^ -----
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)
13
16
help: provide the argument
14
- --> $DIR/auxiliary/delegate_macro.rs:4:26
15
17
|
16
18
LL | <Self>::$method(8, /* u8 */)
17
19
| ++++++++++
18
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
+
19
34
error[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
21
36
|
22
37
LL | foo(1, 2, 3);
23
38
| ^^^--------- argument #4 of type `isize` is missing
@@ -33,7 +48,7 @@ LL | foo(1, 2, 3, /* isize */);
33
48
| +++++++++++++
34
49
35
50
error[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
37
52
|
38
53
LL | bar(1, 2, 3);
39
54
| ^^^--------- three arguments of type `i32`, `i32`, and `i32` are missing
@@ -48,6 +63,6 @@ help: provide the arguments
48
63
LL | bar(1, 2, 3, /* i32 */, /* i32 */, /* i32 */);
49
64
| +++++++++++++++++++++++++++++++++
50
65
51
- error: aborting due to 3 previous errors
66
+ error: aborting due to 4 previous errors
52
67
53
68
For more information about this error, try `rustc --explain E0061`.
0 commit comments