fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0061]: this function takes 0 arguments but 1 argument was supplied 2 --> $DIR/extra_arguments.rs:19:3 3 | 4LL | empty(""); 5 | ^^^^^ -- 6 | | 7 | unexpected argument of type `&'static str` 8 | help: remove the extra argument 9 | 10note: function defined here 11 --> $DIR/extra_arguments.rs:1:4 12 | 13LL | fn empty() {} 14 | ^^^^^ 15 16error[E0061]: this function takes 0 arguments but 2 arguments were supplied 17 --> $DIR/extra_arguments.rs:20:3 18 | 19LL | empty(1, 1); 20 | ^^^^^ - - unexpected argument of type `{integer}` 21 | | 22 | unexpected argument of type `{integer}` 23 | 24note: function defined here 25 --> $DIR/extra_arguments.rs:1:4 26 | 27LL | fn empty() {} 28 | ^^^^^ 29help: remove the extra arguments 30 | 31LL - empty(1, 1); 32LL + empty(); 33 | 34 35error[E0061]: this function takes 1 argument but 2 arguments were supplied 36 --> $DIR/extra_arguments.rs:22:3 37 | 38LL | one_arg(1, 1); 39 | ^^^^^^^ --- 40 | | | 41 | | unexpected argument of type `{integer}` 42 | help: remove the extra argument 43 | 44note: function defined here 45 --> $DIR/extra_arguments.rs:2:4 46 | 47LL | fn one_arg<T>(_a: T) {} 48 | ^^^^^^^ ----- 49 50error[E0061]: this function takes 1 argument but 2 arguments were supplied 51 --> $DIR/extra_arguments.rs:23:3 52 | 53LL | one_arg(1, ""); 54 | ^^^^^^^ ---- 55 | | | 56 | | unexpected argument of type `&'static str` 57 | help: remove the extra argument 58 | 59note: function defined here 60 --> $DIR/extra_arguments.rs:2:4 61 | 62LL | fn one_arg<T>(_a: T) {} 63 | ^^^^^^^ ----- 64 65error[E0061]: this function takes 1 argument but 3 arguments were supplied 66 --> $DIR/extra_arguments.rs:24:3 67 | 68LL | one_arg(1, "", 1.0); 69 | ^^^^^^^ -- --- unexpected argument of type `{float}` 70 | | 71 | unexpected argument of type `&'static str` 72 | 73note: function defined here 74 --> $DIR/extra_arguments.rs:2:4 75 | 76LL | fn one_arg<T>(_a: T) {} 77 | ^^^^^^^ ----- 78help: remove the extra arguments 79 | 80LL - one_arg(1, "", 1.0); 81LL + one_arg(1); 82 | 83 84error[E0061]: this function takes 2 arguments but 3 arguments were supplied 85 --> $DIR/extra_arguments.rs:26:3 86 | 87LL | two_arg_same(1, 1, 1); 88 | ^^^^^^^^^^^^ --- 89 | | | 90 | | unexpected argument of type `{integer}` 91 | help: remove the extra argument 92 | 93note: function defined here 94 --> $DIR/extra_arguments.rs:3:4 95 | 96LL | fn two_arg_same(_a: i32, _b: i32) {} 97 | ^^^^^^^^^^^^ ------- ------- 98 99error[E0061]: this function takes 2 arguments but 3 arguments were supplied 100 --> $DIR/extra_arguments.rs:27:3 101 | 102LL | two_arg_same(1, 1, 1.0); 103 | ^^^^^^^^^^^^ ----- 104 | | | 105 | | unexpected argument of type `{float}` 106 | help: remove the extra argument 107 | 108note: function defined here 109 --> $DIR/extra_arguments.rs:3:4 110 | 111LL | fn two_arg_same(_a: i32, _b: i32) {} 112 | ^^^^^^^^^^^^ ------- ------- 113 114error[E0061]: this function takes 2 arguments but 3 arguments were supplied 115 --> $DIR/extra_arguments.rs:29:3 116 | 117LL | two_arg_diff(1, 1, ""); 118 | ^^^^^^^^^^^^ --- 119 | | | 120 | | unexpected argument of type `{integer}` 121 | help: remove the extra argument 122 | 123note: function defined here 124 --> $DIR/extra_arguments.rs:4:4 125 | 126LL | fn two_arg_diff(_a: i32, _b: &str) {} 127 | ^^^^^^^^^^^^ ------- -------- 128 129error[E0061]: this function takes 2 arguments but 3 arguments were supplied 130 --> $DIR/extra_arguments.rs:30:3 131 | 132LL | two_arg_diff(1, "", ""); 133 | ^^^^^^^^^^^^ ---- 134 | | | 135 | | unexpected argument of type `&'static str` 136 | help: remove the extra argument 137 | 138note: function defined here 139 --> $DIR/extra_arguments.rs:4:4 140 | 141LL | fn two_arg_diff(_a: i32, _b: &str) {} 142 | ^^^^^^^^^^^^ ------- -------- 143 144error[E0061]: this function takes 2 arguments but 4 arguments were supplied 145 --> $DIR/extra_arguments.rs:31:3 146 | 147LL | two_arg_diff(1, 1, "", ""); 148 | ^^^^^^^^^^^^ - -- unexpected argument of type `&'static str` 149 | | 150 | unexpected argument of type `{integer}` 151 | 152note: function defined here 153 --> $DIR/extra_arguments.rs:4:4 154 | 155LL | fn two_arg_diff(_a: i32, _b: &str) {} 156 | ^^^^^^^^^^^^ ------- -------- 157help: remove the extra arguments 158 | 159LL - two_arg_diff(1, 1, "", ""); 160LL + two_arg_diff(1, ""); 161 | 162 163error[E0061]: this function takes 2 arguments but 4 arguments were supplied 164 --> $DIR/extra_arguments.rs:32:3 165 | 166LL | two_arg_diff(1, "", 1, ""); 167 | ^^^^^^^^^^^^ - -- unexpected argument of type `&'static str` 168 | | 169 | unexpected argument of type `{integer}` 170 | 171note: function defined here 172 --> $DIR/extra_arguments.rs:4:4 173 | 174LL | fn two_arg_diff(_a: i32, _b: &str) {} 175 | ^^^^^^^^^^^^ ------- -------- 176help: remove the extra arguments 177 | 178LL - two_arg_diff(1, "", 1, ""); 179LL + two_arg_diff(1, ""); 180 | 181 182error[E0061]: this function takes 2 arguments but 3 arguments were supplied 183 --> $DIR/extra_arguments.rs:35:3 184 | 185LL | two_arg_same(1, 1, ""); 186 | ^^^^^^^^^^^^ -------- 187 | | | 188 | | unexpected argument of type `&'static str` 189 | help: remove the extra argument 190 | 191note: function defined here 192 --> $DIR/extra_arguments.rs:3:4 193 | 194LL | fn two_arg_same(_a: i32, _b: i32) {} 195 | ^^^^^^^^^^^^ ------- ------- 196 197error[E0061]: this function takes 2 arguments but 3 arguments were supplied 198 --> $DIR/extra_arguments.rs:36:3 199 | 200LL | two_arg_diff(1, 1, ""); 201 | ^^^^^^^^^^^^ --- 202 | | | 203 | | unexpected argument of type `{integer}` 204 | help: remove the extra argument 205 | 206note: function defined here 207 --> $DIR/extra_arguments.rs:4:4 208 | 209LL | fn two_arg_diff(_a: i32, _b: &str) {} 210 | ^^^^^^^^^^^^ ------- -------- 211 212error[E0061]: this function takes 2 arguments but 3 arguments were supplied 213 --> $DIR/extra_arguments.rs:37:3 214 | 215LL | two_arg_same( 216 | ^^^^^^^^^^^^ 217LL | 1, 218LL | 1, 219 | ______- 220LL | | "" 221 | | -- 222 | |_____|| 223 | |help: remove the extra argument 224 | unexpected argument of type `&'static str` 225 | 226note: function defined here 227 --> $DIR/extra_arguments.rs:3:4 228 | 229LL | fn two_arg_same(_a: i32, _b: i32) {} 230 | ^^^^^^^^^^^^ ------- ------- 231 232error[E0061]: this function takes 2 arguments but 3 arguments were supplied 233 --> $DIR/extra_arguments.rs:43:3 234 | 235LL | two_arg_diff( 236 | ^^^^^^^^^^^^ 237LL | 1, 238 | ______- 239LL | | 1, 240 | | - 241 | | | 242 | |_____unexpected argument of type `{integer}` 243 | help: remove the extra argument 244 | 245note: function defined here 246 --> $DIR/extra_arguments.rs:4:4 247 | 248LL | fn two_arg_diff(_a: i32, _b: &str) {} 249 | ^^^^^^^^^^^^ ------- -------- 250 251error[E0061]: this function takes 0 arguments but 2 arguments were supplied 252 --> $DIR/extra_arguments.rs:8:9 253 | 254LL | empty($x, 1); 255 | ^^^^^ - unexpected argument of type `{integer}` 256... 257LL | foo!(1, ~); 258 | ---------- 259 | | | 260 | | unexpected argument of type `{integer}` 261 | in this macro invocation 262 | 263note: function defined here 264 --> $DIR/extra_arguments.rs:1:4 265 | 266LL | fn empty() {} 267 | ^^^^^ 268 = note: this error originates in the macro `foo` (in Nightly builds, run with -Z macro-backtrace for more info) 269 270error[E0061]: this function takes 0 arguments but 2 arguments were supplied 271 --> $DIR/extra_arguments.rs:14:9 272 | 273LL | empty(1, $y); 274 | ^^^^^ - unexpected argument of type `{integer}` 275... 276LL | foo!(~, 1); 277 | ---------- 278 | | | 279 | | unexpected argument of type `{integer}` 280 | in this macro invocation 281 | 282note: function defined here 283 --> $DIR/extra_arguments.rs:1:4 284 | 285LL | fn empty() {} 286 | ^^^^^ 287 = note: this error originates in the macro `foo` (in Nightly builds, run with -Z macro-backtrace for more info) 288 289error[E0061]: this function takes 0 arguments but 2 arguments were supplied 290 --> $DIR/extra_arguments.rs:11:9 291 | 292LL | empty($x, $y); 293 | ^^^^^ 294... 295LL | foo!(1, 1); 296 | ---------- 297 | | | | 298 | | | unexpected argument of type `{integer}` 299 | | unexpected argument of type `{integer}` 300 | in this macro invocation 301 | 302note: function defined here 303 --> $DIR/extra_arguments.rs:1:4 304 | 305LL | fn empty() {} 306 | ^^^^^ 307 = note: this error originates in the macro `foo` (in Nightly builds, run with -Z macro-backtrace for more info) 308 309error[E0061]: this function takes 1 argument but 2 arguments were supplied 310 --> $DIR/extra_arguments.rs:53:3 311 | 312LL | one_arg(1, panic!()); 313 | ^^^^^^^ ---------- 314 | | | 315 | | unexpected argument 316 | help: remove the extra argument 317 | 318note: function defined here 319 --> $DIR/extra_arguments.rs:2:4 320 | 321LL | fn one_arg<T>(_a: T) {} 322 | ^^^^^^^ ----- 323 324error[E0061]: this function takes 1 argument but 2 arguments were supplied 325 --> $DIR/extra_arguments.rs:54:3 326 | 327LL | one_arg(panic!(), 1); 328 | ^^^^^^^ --- 329 | | | 330 | | unexpected argument of type `{integer}` 331 | help: remove the extra argument 332 | 333note: function defined here 334 --> $DIR/extra_arguments.rs:2:4 335 | 336LL | fn one_arg<T>(_a: T) {} 337 | ^^^^^^^ ----- 338 339error[E0061]: this function takes 1 argument but 2 arguments were supplied 340 --> $DIR/extra_arguments.rs:55:3 341 | 342LL | one_arg(stringify!($e), 1); 343 | ^^^^^^^ --- 344 | | | 345 | | unexpected argument of type `{integer}` 346 | help: remove the extra argument 347 | 348note: function defined here 349 --> $DIR/extra_arguments.rs:2:4 350 | 351LL | fn one_arg<T>(_a: T) {} 352 | ^^^^^^^ ----- 353 354error[E0061]: this function takes 1 argument but 2 arguments were supplied 355 --> $DIR/extra_arguments.rs:60:3 356 | 357LL | one_arg(for _ in 1.. {}, 1); 358 | ^^^^^^^ --- 359 | | | 360 | | unexpected argument of type `{integer}` 361 | help: remove the extra argument 362 | 363note: function defined here 364 --> $DIR/extra_arguments.rs:2:4 365 | 366LL | fn one_arg<T>(_a: T) {} 367 | ^^^^^^^ ----- 368 369error: aborting due to 22 previous errors 370 371For more information about this error, try `rustc --explain E0061`.