|
1 | 1 | error[E0061]: this function takes 2 arguments but 1 argument was supplied
|
2 |
| - --> $DIR/not-enough-arguments.rs:28:7 |
| 2 | + --> $DIR/not-enough-arguments.rs:27:9 |
3 | 3 | |
|
4 |
| -LL | <Self>::$method(8) |
5 |
| - | ^^^^^^^^^^^^^^^--- argument #2 of type `u8` is missing |
6 |
| -... |
7 |
| -LL | delegate!(foo); |
8 |
| - | -------------- in this macro invocation |
| 4 | +LL | delegate!(foo); |
| 5 | + | ^^^^^^^^^^^^^^ argument #2 of type `u8` is missing |
9 | 6 | |
|
10 | 7 | note: associated function defined here
|
11 |
| - --> $DIR/not-enough-arguments.rs:36:6 |
| 8 | + --> $DIR/not-enough-arguments.rs:25:8 |
12 | 9 | |
|
13 |
| -LL | fn foo(a: u8, b: u8) {} |
14 |
| - | ^^^ ----- |
| 10 | +LL | fn foo(a: u8, b: u8) {} |
| 11 | + | ^^^ ----- |
15 | 12 | = note: this error originates in the macro `delegate` (in Nightly builds, run with -Z macro-backtrace for more info)
|
16 | 13 | help: provide the argument
|
| 14 | + --> $DIR/auxiliary/delegate_macro.rs:4:26 |
17 | 15 | |
|
18 |
| -LL | <Self>::$method(8, /* u8 */) |
19 |
| - | ++++++++++ |
| 16 | +LL | <Self>::$method(8, /* u8 */) |
| 17 | + | ++++++++++ |
20 | 18 |
|
21 | 19 | error[E0061]: this function takes 4 arguments but 3 arguments were supplied
|
22 |
| - --> $DIR/not-enough-arguments.rs:43:3 |
| 20 | + --> $DIR/not-enough-arguments.rs:33:5 |
23 | 21 | |
|
24 |
| -LL | foo(1, 2, 3); |
25 |
| - | ^^^--------- argument #4 of type `isize` is missing |
| 22 | +LL | foo(1, 2, 3); |
| 23 | + | ^^^--------- argument #4 of type `isize` is missing |
26 | 24 | |
|
27 | 25 | note: function defined here
|
28 |
| - --> $DIR/not-enough-arguments.rs:5:4 |
| 26 | + --> $DIR/not-enough-arguments.rs:8:4 |
29 | 27 | |
|
30 |
| -LL | fn foo(a: isize, b: isize, c: isize, d:isize) { |
31 |
| - | ^^^ ------- |
| 28 | +LL | fn foo(a: isize, b: isize, c: isize, d: isize) { |
| 29 | + | ^^^ -------- |
32 | 30 | help: provide the argument
|
33 | 31 | |
|
34 |
| -LL | foo(1, 2, 3, /* isize */); |
35 |
| - | +++++++++++++ |
| 32 | +LL | foo(1, 2, 3, /* isize */); |
| 33 | + | +++++++++++++ |
36 | 34 |
|
37 | 35 | error[E0061]: this function takes 6 arguments but 3 arguments were supplied
|
38 |
| - --> $DIR/not-enough-arguments.rs:45:3 |
| 36 | + --> $DIR/not-enough-arguments.rs:35:5 |
39 | 37 | |
|
40 |
| -LL | bar(1, 2, 3); |
41 |
| - | ^^^--------- three arguments of type `i32`, `i32`, and `i32` are missing |
| 38 | +LL | bar(1, 2, 3); |
| 39 | + | ^^^--------- three arguments of type `i32`, `i32`, and `i32` are missing |
42 | 40 | |
|
43 | 41 | note: function defined here
|
44 |
| - --> $DIR/not-enough-arguments.rs:10:4 |
45 |
| - | |
46 |
| -LL | fn bar( |
47 |
| - | ^^^ |
48 |
| -... |
49 |
| -LL | d: i32, |
50 |
| - | ------ |
51 |
| -LL | e: i32, |
52 |
| - | ------ |
53 |
| -LL | f: i32, |
54 |
| - | ------ |
| 42 | + --> $DIR/not-enough-arguments.rs:13:4 |
| 43 | + | |
| 44 | +LL | fn bar(a: i32, b: i32, c: i32, d: i32, e: i32, f: i32) { |
| 45 | + | ^^^ ------ ------ ------ |
55 | 46 | help: provide the arguments
|
56 | 47 | |
|
57 |
| -LL | bar(1, 2, 3, /* i32 */, /* i32 */, /* i32 */); |
58 |
| - | +++++++++++++++++++++++++++++++++ |
| 48 | +LL | bar(1, 2, 3, /* i32 */, /* i32 */, /* i32 */); |
| 49 | + | +++++++++++++++++++++++++++++++++ |
59 | 50 |
|
60 | 51 | error: aborting due to 3 previous errors
|
61 | 52 |
|
|
0 commit comments