1
1
error[E0061]: this function takes 0 arguments but 2 arguments were supplied
2
- --> $DIR/issue-109425.rs:8 :5
2
+ --> $DIR/issue-109425.rs:10 :5
3
3
|
4
4
LL | f(0, 1,); // f()
5
5
| ^ - - unexpected argument of type `{integer}`
6
6
| |
7
7
| unexpected argument of type `{integer}`
8
8
|
9
9
note: function defined here
10
- --> $DIR/issue-109425.rs:1 :4
10
+ --> $DIR/issue-109425.rs:3 :4
11
11
|
12
12
LL | fn f() {}
13
13
| ^
14
14
help: remove the extra arguments
15
15
|
16
16
LL - f(0, 1,); // f()
17
- LL + f(, ); // f()
17
+ LL + f(); // f()
18
18
|
19
19
20
20
error[E0061]: this function takes 1 argument but 3 arguments were supplied
21
- --> $DIR/issue-109425.rs:10 :5
21
+ --> $DIR/issue-109425.rs:12 :5
22
22
|
23
23
LL | i(0, 1, 2,); // i(0,)
24
24
| ^ - - unexpected argument of type `{integer}`
25
25
| |
26
26
| unexpected argument of type `{integer}`
27
27
|
28
28
note: function defined here
29
- --> $DIR/issue-109425.rs:2 :4
29
+ --> $DIR/issue-109425.rs:4 :4
30
30
|
31
31
LL | fn i(_: u32) {}
32
32
| ^ ------
@@ -37,15 +37,15 @@ LL + i(0,); // i(0,)
37
37
|
38
38
39
39
error[E0061]: this function takes 1 argument but 3 arguments were supplied
40
- --> $DIR/issue-109425.rs:12 :5
40
+ --> $DIR/issue-109425.rs:14 :5
41
41
|
42
42
LL | i(0, 1, 2); // i(0)
43
43
| ^ - - unexpected argument of type `{integer}`
44
44
| |
45
45
| unexpected argument of type `{integer}`
46
46
|
47
47
note: function defined here
48
- --> $DIR/issue-109425.rs:2 :4
48
+ --> $DIR/issue-109425.rs:4 :4
49
49
|
50
50
LL | fn i(_: u32) {}
51
51
| ^ ------
@@ -56,15 +56,15 @@ LL + i(0); // i(0)
56
56
|
57
57
58
58
error[E0061]: this function takes 2 arguments but 4 arguments were supplied
59
- --> $DIR/issue-109425.rs:14 :5
59
+ --> $DIR/issue-109425.rs:16 :5
60
60
|
61
61
LL | is(0, 1, 2, ""); // is(0, "")
62
62
| ^^ - - unexpected argument of type `{integer}`
63
63
| |
64
64
| unexpected argument of type `{integer}`
65
65
|
66
66
note: function defined here
67
- --> $DIR/issue-109425.rs:3 :4
67
+ --> $DIR/issue-109425.rs:5 :4
68
68
|
69
69
LL | fn is(_: u32, _: &str) {}
70
70
| ^^ ------ -------
@@ -75,22 +75,22 @@ LL + is(0, ""); // is(0, "")
75
75
|
76
76
77
77
error[E0061]: this function takes 1 argument but 3 arguments were supplied
78
- --> $DIR/issue-109425.rs:16 :5
78
+ --> $DIR/issue-109425.rs:18 :5
79
79
|
80
80
LL | s(0, 1, ""); // s("")
81
81
| ^ - - unexpected argument of type `{integer}`
82
82
| |
83
83
| unexpected argument of type `{integer}`
84
84
|
85
85
note: function defined here
86
- --> $DIR/issue-109425.rs:4 :4
86
+ --> $DIR/issue-109425.rs:6 :4
87
87
|
88
88
LL | fn s(_: &str) {}
89
89
| ^ -------
90
90
help: remove the extra arguments
91
91
|
92
92
LL - s(0, 1, ""); // s("")
93
- LL + s(, ""); // s("")
93
+ LL + s(""); // s("")
94
94
|
95
95
96
96
error: aborting due to 5 previous errors
0 commit comments