@@ -2,52 +2,46 @@ error[E0061]: this function takes 0 arguments but 1 argument was supplied
2
2
--> $DIR/extra_arguments.rs:7:3
3
3
|
4
4
LL | empty("");
5
- | ^^^^^ -- unexpected argument of type `&'static str`
5
+ | ^^^^^ --
6
+ | |
7
+ | unexpected argument of type `&'static str`
8
+ | help: remove the extra argument
6
9
|
7
10
note: function defined here
8
11
--> $DIR/extra_arguments.rs:1:4
9
12
|
10
13
LL | fn empty() {}
11
14
| ^^^^^
12
- help: remove the extra argument
13
- |
14
- LL - empty("");
15
- LL + empty();
16
- |
17
15
18
16
error[E0061]: this function takes 1 argument but 2 arguments were supplied
19
17
--> $DIR/extra_arguments.rs:9:3
20
18
|
21
19
LL | one_arg(1, 1);
22
- | ^^^^^^^ - unexpected argument of type `{integer}`
20
+ | ^^^^^^^ ---
21
+ | | |
22
+ | | unexpected argument of type `{integer}`
23
+ | help: remove the extra argument
23
24
|
24
25
note: function defined here
25
26
--> $DIR/extra_arguments.rs:2:4
26
27
|
27
28
LL | fn one_arg(_a: i32) {}
28
29
| ^^^^^^^ -------
29
- help: remove the extra argument
30
- |
31
- LL - one_arg(1, 1);
32
- LL + one_arg(1);
33
- |
34
30
35
31
error[E0061]: this function takes 1 argument but 2 arguments were supplied
36
32
--> $DIR/extra_arguments.rs:10:3
37
33
|
38
34
LL | one_arg(1, "");
39
- | ^^^^^^^ -- unexpected argument of type `&'static str`
35
+ | ^^^^^^^ ----
36
+ | | |
37
+ | | unexpected argument of type `&'static str`
38
+ | help: remove the extra argument
40
39
|
41
40
note: function defined here
42
41
--> $DIR/extra_arguments.rs:2:4
43
42
|
44
43
LL | fn one_arg(_a: i32) {}
45
44
| ^^^^^^^ -------
46
- help: remove the extra argument
47
- |
48
- LL - one_arg(1, "");
49
- LL + one_arg(1);
50
- |
51
45
52
46
error[E0061]: this function takes 1 argument but 3 arguments were supplied
53
47
--> $DIR/extra_arguments.rs:11:3
@@ -72,69 +66,61 @@ error[E0061]: this function takes 2 arguments but 3 arguments were supplied
72
66
--> $DIR/extra_arguments.rs:13:3
73
67
|
74
68
LL | two_arg_same(1, 1, 1);
75
- | ^^^^^^^^^^^^ - unexpected argument of type `{integer}`
69
+ | ^^^^^^^^^^^^ ---
70
+ | | |
71
+ | | unexpected argument of type `{integer}`
72
+ | help: remove the extra argument
76
73
|
77
74
note: function defined here
78
75
--> $DIR/extra_arguments.rs:3:4
79
76
|
80
77
LL | fn two_arg_same(_a: i32, _b: i32) {}
81
78
| ^^^^^^^^^^^^ ------- -------
82
- help: remove the extra argument
83
- |
84
- LL - two_arg_same(1, 1, 1);
85
- LL + two_arg_same(1, 1);
86
- |
87
79
88
80
error[E0061]: this function takes 2 arguments but 3 arguments were supplied
89
81
--> $DIR/extra_arguments.rs:14:3
90
82
|
91
83
LL | two_arg_same(1, 1, 1.0);
92
- | ^^^^^^^^^^^^ --- unexpected argument of type `{float}`
84
+ | ^^^^^^^^^^^^ -----
85
+ | | |
86
+ | | unexpected argument of type `{float}`
87
+ | help: remove the extra argument
93
88
|
94
89
note: function defined here
95
90
--> $DIR/extra_arguments.rs:3:4
96
91
|
97
92
LL | fn two_arg_same(_a: i32, _b: i32) {}
98
93
| ^^^^^^^^^^^^ ------- -------
99
- help: remove the extra argument
100
- |
101
- LL - two_arg_same(1, 1, 1.0);
102
- LL + two_arg_same(1, 1);
103
- |
104
94
105
95
error[E0061]: this function takes 2 arguments but 3 arguments were supplied
106
96
--> $DIR/extra_arguments.rs:16:3
107
97
|
108
98
LL | two_arg_diff(1, 1, "");
109
- | ^^^^^^^^^^^^ - unexpected argument of type `{integer}`
99
+ | ^^^^^^^^^^^^ ---
100
+ | | |
101
+ | | unexpected argument of type `{integer}`
102
+ | help: remove the extra argument
110
103
|
111
104
note: function defined here
112
105
--> $DIR/extra_arguments.rs:4:4
113
106
|
114
107
LL | fn two_arg_diff(_a: i32, _b: &str) {}
115
108
| ^^^^^^^^^^^^ ------- --------
116
- help: remove the extra argument
117
- |
118
- LL - two_arg_diff(1, 1, "");
119
- LL + two_arg_diff(1, "");
120
- |
121
109
122
110
error[E0061]: this function takes 2 arguments but 3 arguments were supplied
123
111
--> $DIR/extra_arguments.rs:17:3
124
112
|
125
113
LL | two_arg_diff(1, "", "");
126
- | ^^^^^^^^^^^^ -- unexpected argument of type `&'static str`
114
+ | ^^^^^^^^^^^^ ----
115
+ | | |
116
+ | | unexpected argument of type `&'static str`
117
+ | help: remove the extra argument
127
118
|
128
119
note: function defined here
129
120
--> $DIR/extra_arguments.rs:4:4
130
121
|
131
122
LL | fn two_arg_diff(_a: i32, _b: &str) {}
132
123
| ^^^^^^^^^^^^ ------- --------
133
- help: remove the extra argument
134
- |
135
- LL - two_arg_diff(1, "", "");
136
- LL + two_arg_diff(1, "");
137
- |
138
124
139
125
error[E0061]: this function takes 2 arguments but 4 arguments were supplied
140
126
--> $DIR/extra_arguments.rs:18:3
@@ -178,75 +164,70 @@ error[E0061]: this function takes 2 arguments but 3 arguments were supplied
178
164
--> $DIR/extra_arguments.rs:22:3
179
165
|
180
166
LL | two_arg_same(1, 1, "");
181
- | ^^^^^^^^^^^^ -- unexpected argument of type `&'static str`
167
+ | ^^^^^^^^^^^^ --------
168
+ | | |
169
+ | | unexpected argument of type `&'static str`
170
+ | help: remove the extra argument
182
171
|
183
172
note: function defined here
184
173
--> $DIR/extra_arguments.rs:3:4
185
174
|
186
175
LL | fn two_arg_same(_a: i32, _b: i32) {}
187
176
| ^^^^^^^^^^^^ ------- -------
188
- help: remove the extra argument
189
- |
190
- LL - two_arg_same(1, 1, "");
191
- LL + two_arg_same(1, 1);
192
- |
193
177
194
178
error[E0061]: this function takes 2 arguments but 3 arguments were supplied
195
179
--> $DIR/extra_arguments.rs:23:3
196
180
|
197
181
LL | two_arg_diff(1, 1, "");
198
- | ^^^^^^^^^^^^ - unexpected argument of type `{integer}`
182
+ | ^^^^^^^^^^^^ ---
183
+ | | |
184
+ | | unexpected argument of type `{integer}`
185
+ | help: remove the extra argument
199
186
|
200
187
note: function defined here
201
188
--> $DIR/extra_arguments.rs:4:4
202
189
|
203
190
LL | fn two_arg_diff(_a: i32, _b: &str) {}
204
191
| ^^^^^^^^^^^^ ------- --------
205
- help: remove the extra argument
206
- |
207
- LL - two_arg_diff(1, 1, "");
208
- LL + two_arg_diff(1, "");
209
- |
210
192
211
193
error[E0061]: this function takes 2 arguments but 3 arguments were supplied
212
194
--> $DIR/extra_arguments.rs:24:3
213
195
|
214
- LL | two_arg_same(
215
- | ^^^^^^^^^^^^
216
- ...
217
- LL | ""
218
- | -- unexpected argument of type `&'static str`
196
+ LL | two_arg_same(
197
+ | ^^^^^^^^^^^^
198
+ LL | 1,
199
+ LL | 1,
200
+ | ______-
201
+ LL | | ""
202
+ | | --
203
+ | |_____||
204
+ | |help: remove the extra argument
205
+ | unexpected argument of type `&'static str`
219
206
|
220
207
note: function defined here
221
208
--> $DIR/extra_arguments.rs:3:4
222
209
|
223
210
LL | fn two_arg_same(_a: i32, _b: i32) {}
224
211
| ^^^^^^^^^^^^ ------- -------
225
- help: remove the extra argument
226
- |
227
- LL - 1,
228
- LL + 1
229
- |
230
212
231
213
error[E0061]: this function takes 2 arguments but 3 arguments were supplied
232
214
--> $DIR/extra_arguments.rs:30:3
233
215
|
234
- LL | two_arg_diff(
235
- | ^^^^^^^^^^^^
236
- LL | 1,
237
- LL | 1,
238
- | - unexpected argument of type `{integer}`
216
+ LL | two_arg_diff(
217
+ | ^^^^^^^^^^^^
218
+ LL | 1,
219
+ | ______-
220
+ LL | | 1,
221
+ | | -
222
+ | | |
223
+ | |_____unexpected argument of type `{integer}`
224
+ | help: remove the extra argument
239
225
|
240
226
note: function defined here
241
227
--> $DIR/extra_arguments.rs:4:4
242
228
|
243
229
LL | fn two_arg_diff(_a: i32, _b: &str) {}
244
230
| ^^^^^^^^^^^^ ------- --------
245
- help: remove the extra argument
246
- |
247
- LL - 1,
248
- LL + 1,
249
- |
250
231
251
232
error: aborting due to 14 previous errors
252
233
0 commit comments