1
1
error[E0061]: this function takes 2 arguments but 1 argument was supplied
2
- --> $DIR/not-enough-arguments .rs:24:9
2
+ --> $DIR/fn-arg-count-mismatch-diagnostics .rs:24:9
3
3
|
4
4
LL | <Self>::$method(8)
5
5
| ^^^^^^^^^^^^^^^--- argument #2 of type `u8` is missing
@@ -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:39:8
11
+ --> $DIR/fn-arg-count-mismatch-diagnostics .rs:39:8
12
12
|
13
13
LL | fn foo(a: u8, b: u8) {}
14
14
| ^^^ -----
@@ -19,20 +19,20 @@ 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:42 :9
22
+ --> $DIR/fn-arg-count-mismatch-diagnostics .rs:43 :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:39:8
28
+ --> $DIR/fn-arg-count-mismatch-diagnostics .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
34
error[E0061]: this function takes 2 arguments but 1 argument was supplied
35
- --> $DIR/not-enough-arguments .rs:31:9
35
+ --> $DIR/fn-arg-count-mismatch-diagnostics .rs:31:9
36
36
|
37
37
LL | <$from>::$method(8)
38
38
| ^^^^^^^^^^^^^^^^--- argument #2 of type `u8` is missing
@@ -41,7 +41,7 @@ LL | delegate_from!(Bar, foo);
41
41
| ------------------------ in this macro invocation
42
42
|
43
43
note: associated function defined here
44
- --> $DIR/not-enough-arguments .rs:39:8
44
+ --> $DIR/fn-arg-count-mismatch-diagnostics .rs:39:8
45
45
|
46
46
LL | fn foo(a: u8, b: u8) {}
47
47
| ^^^ -----
@@ -52,13 +52,13 @@ LL | <$from>::$method(8, /* u8 */)
52
52
| ++++++++++
53
53
54
54
error[E0061]: this function takes 4 arguments but 3 arguments were supplied
55
- --> $DIR/not-enough-arguments .rs:49 :5
55
+ --> $DIR/fn-arg-count-mismatch-diagnostics .rs:50 :5
56
56
|
57
57
LL | foo(1, 2, 3);
58
58
| ^^^--------- argument #4 of type `isize` is missing
59
59
|
60
60
note: function defined here
61
- --> $DIR/not-enough-arguments .rs:8 :4
61
+ --> $DIR/fn-arg-count-mismatch-diagnostics .rs:9 :4
62
62
|
63
63
LL | fn foo(a: isize, b: isize, c: isize, d: isize) {
64
64
| ^^^ --------
@@ -68,13 +68,13 @@ LL | foo(1, 2, 3, /* isize */);
68
68
| +++++++++++++
69
69
70
70
error[E0061]: this function takes 6 arguments but 3 arguments were supplied
71
- --> $DIR/not-enough-arguments .rs:51 :5
71
+ --> $DIR/fn-arg-count-mismatch-diagnostics .rs:52 :5
72
72
|
73
73
LL | bar(1, 2, 3);
74
74
| ^^^--------- three arguments of type `i32`, `i32`, and `i32` are missing
75
75
|
76
76
note: function defined here
77
- --> $DIR/not-enough-arguments .rs:13:4
77
+ --> $DIR/fn-arg-count-mismatch-diagnostics .rs:13:4
78
78
|
79
79
LL | fn bar(a: i32, b: i32, c: i32, d: i32, e: i32, f: i32) {
80
80
| ^^^ ------ ------ ------
0 commit comments