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