fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0308]: mismatched types 2 --> $DIR/numeric-suffix.rs:143:16 3 | 4LL | foo::<u16>(42_usize); 5 | ---------- ^^^^^^^^ expected `u16`, found `usize` 6 | | 7 | arguments to this function are incorrect 8 | 9note: function defined here 10 --> $DIR/numeric-suffix.rs:3:4 11 | 12LL | fn foo<N>(_x: N) {} 13 | ^^^ ----- 14help: change the type of the numeric literal from `usize` to `u16` 15 | 16LL | foo::<u16>(42_u16); 17 | ~~~ 18 19error[E0308]: mismatched types 20 --> $DIR/numeric-suffix.rs:147:16 21 | 22LL | foo::<u16>(42_u64); 23 | ---------- ^^^^^^ expected `u16`, found `u64` 24 | | 25 | arguments to this function are incorrect 26 | 27note: function defined here 28 --> $DIR/numeric-suffix.rs:3:4 29 | 30LL | fn foo<N>(_x: N) {} 31 | ^^^ ----- 32help: change the type of the numeric literal from `u64` to `u16` 33 | 34LL | foo::<u16>(42_u16); 35 | ~~~ 36 37error[E0308]: mismatched types 38 --> $DIR/numeric-suffix.rs:151:16 39 | 40LL | foo::<u16>(42_u32); 41 | ---------- ^^^^^^ expected `u16`, found `u32` 42 | | 43 | arguments to this function are incorrect 44 | 45note: function defined here 46 --> $DIR/numeric-suffix.rs:3:4 47 | 48LL | fn foo<N>(_x: N) {} 49 | ^^^ ----- 50help: change the type of the numeric literal from `u32` to `u16` 51 | 52LL | foo::<u16>(42_u16); 53 | ~~~ 54 55error[E0308]: mismatched types 56 --> $DIR/numeric-suffix.rs:156:16 57 | 58LL | foo::<u16>(42_u8); 59 | ---------- ^^^^^ expected `u16`, found `u8` 60 | | 61 | arguments to this function are incorrect 62 | 63note: function defined here 64 --> $DIR/numeric-suffix.rs:3:4 65 | 66LL | fn foo<N>(_x: N) {} 67 | ^^^ ----- 68help: change the type of the numeric literal from `u8` to `u16` 69 | 70LL | foo::<u16>(42_u16); 71 | ~~~ 72 73error[E0308]: mismatched types 74 --> $DIR/numeric-suffix.rs:160:16 75 | 76LL | foo::<u16>(42_isize); 77 | ---------- ^^^^^^^^ expected `u16`, found `isize` 78 | | 79 | arguments to this function are incorrect 80 | 81note: function defined here 82 --> $DIR/numeric-suffix.rs:3:4 83 | 84LL | fn foo<N>(_x: N) {} 85 | ^^^ ----- 86help: change the type of the numeric literal from `isize` to `u16` 87 | 88LL | foo::<u16>(42_u16); 89 | ~~~ 90 91error[E0308]: mismatched types 92 --> $DIR/numeric-suffix.rs:164:16 93 | 94LL | foo::<u16>(42_i64); 95 | ---------- ^^^^^^ expected `u16`, found `i64` 96 | | 97 | arguments to this function are incorrect 98 | 99note: function defined here 100 --> $DIR/numeric-suffix.rs:3:4 101 | 102LL | fn foo<N>(_x: N) {} 103 | ^^^ ----- 104help: change the type of the numeric literal from `i64` to `u16` 105 | 106LL | foo::<u16>(42_u16); 107 | ~~~ 108 109error[E0308]: mismatched types 110 --> $DIR/numeric-suffix.rs:168:16 111 | 112LL | foo::<u16>(42_i32); 113 | ---------- ^^^^^^ expected `u16`, found `i32` 114 | | 115 | arguments to this function are incorrect 116 | 117note: function defined here 118 --> $DIR/numeric-suffix.rs:3:4 119 | 120LL | fn foo<N>(_x: N) {} 121 | ^^^ ----- 122help: change the type of the numeric literal from `i32` to `u16` 123 | 124LL | foo::<u16>(42_u16); 125 | ~~~ 126 127error[E0308]: mismatched types 128 --> $DIR/numeric-suffix.rs:172:16 129 | 130LL | foo::<u16>(42_i16); 131 | ---------- ^^^^^^ expected `u16`, found `i16` 132 | | 133 | arguments to this function are incorrect 134 | 135note: function defined here 136 --> $DIR/numeric-suffix.rs:3:4 137 | 138LL | fn foo<N>(_x: N) {} 139 | ^^^ ----- 140help: change the type of the numeric literal from `i16` to `u16` 141 | 142LL | foo::<u16>(42_u16); 143 | ~~~ 144 145error[E0308]: mismatched types 146 --> $DIR/numeric-suffix.rs:176:16 147 | 148LL | foo::<u16>(42_i8); 149 | ---------- ^^^^^ expected `u16`, found `i8` 150 | | 151 | arguments to this function are incorrect 152 | 153note: function defined here 154 --> $DIR/numeric-suffix.rs:3:4 155 | 156LL | fn foo<N>(_x: N) {} 157 | ^^^ ----- 158help: change the type of the numeric literal from `i8` to `u16` 159 | 160LL | foo::<u16>(42_u16); 161 | ~~~ 162 163error[E0308]: mismatched types 164 --> $DIR/numeric-suffix.rs:180:16 165 | 166LL | foo::<u16>(42.0_f64); 167 | ---------- ^^^^^^^^ expected `u16`, found `f64` 168 | | 169 | arguments to this function are incorrect 170 | 171note: function defined here 172 --> $DIR/numeric-suffix.rs:3:4 173 | 174LL | fn foo<N>(_x: N) {} 175 | ^^^ ----- 176help: change the type of the numeric literal from `f64` to `u16` 177 | 178LL | foo::<u16>(42u16); 179 | ~~~ 180 181error[E0308]: mismatched types 182 --> $DIR/numeric-suffix.rs:184:16 183 | 184LL | foo::<u16>(42.0_f32); 185 | ---------- ^^^^^^^^ expected `u16`, found `f32` 186 | | 187 | arguments to this function are incorrect 188 | 189note: function defined here 190 --> $DIR/numeric-suffix.rs:3:4 191 | 192LL | fn foo<N>(_x: N) {} 193 | ^^^ ----- 194help: change the type of the numeric literal from `f32` to `u16` 195 | 196LL | foo::<u16>(42u16); 197 | ~~~ 198 199error[E0308]: mismatched types 200 --> $DIR/numeric-suffix.rs:189:16 201 | 202LL | foo::<i16>(42_usize); 203 | ---------- ^^^^^^^^ expected `i16`, found `usize` 204 | | 205 | arguments to this function are incorrect 206 | 207note: function defined here 208 --> $DIR/numeric-suffix.rs:3:4 209 | 210LL | fn foo<N>(_x: N) {} 211 | ^^^ ----- 212help: change the type of the numeric literal from `usize` to `i16` 213 | 214LL | foo::<i16>(42_i16); 215 | ~~~ 216 217error[E0308]: mismatched types 218 --> $DIR/numeric-suffix.rs:193:16 219 | 220LL | foo::<i16>(42_u64); 221 | ---------- ^^^^^^ expected `i16`, found `u64` 222 | | 223 | arguments to this function are incorrect 224 | 225note: function defined here 226 --> $DIR/numeric-suffix.rs:3:4 227 | 228LL | fn foo<N>(_x: N) {} 229 | ^^^ ----- 230help: change the type of the numeric literal from `u64` to `i16` 231 | 232LL | foo::<i16>(42_i16); 233 | ~~~ 234 235error[E0308]: mismatched types 236 --> $DIR/numeric-suffix.rs:197:16 237 | 238LL | foo::<i16>(42_u32); 239 | ---------- ^^^^^^ expected `i16`, found `u32` 240 | | 241 | arguments to this function are incorrect 242 | 243note: function defined here 244 --> $DIR/numeric-suffix.rs:3:4 245 | 246LL | fn foo<N>(_x: N) {} 247 | ^^^ ----- 248help: change the type of the numeric literal from `u32` to `i16` 249 | 250LL | foo::<i16>(42_i16); 251 | ~~~ 252 253error[E0308]: mismatched types 254 --> $DIR/numeric-suffix.rs:201:16 255 | 256LL | foo::<i16>(42_u16); 257 | ---------- ^^^^^^ expected `i16`, found `u16` 258 | | 259 | arguments to this function are incorrect 260 | 261note: function defined here 262 --> $DIR/numeric-suffix.rs:3:4 263 | 264LL | fn foo<N>(_x: N) {} 265 | ^^^ ----- 266help: change the type of the numeric literal from `u16` to `i16` 267 | 268LL | foo::<i16>(42_i16); 269 | ~~~ 270 271error[E0308]: mismatched types 272 --> $DIR/numeric-suffix.rs:205:16 273 | 274LL | foo::<i16>(42_u8); 275 | ---------- ^^^^^ expected `i16`, found `u8` 276 | | 277 | arguments to this function are incorrect 278 | 279note: function defined here 280 --> $DIR/numeric-suffix.rs:3:4 281 | 282LL | fn foo<N>(_x: N) {} 283 | ^^^ ----- 284help: change the type of the numeric literal from `u8` to `i16` 285 | 286LL | foo::<i16>(42_i16); 287 | ~~~ 288 289error[E0308]: mismatched types 290 --> $DIR/numeric-suffix.rs:209:16 291 | 292LL | foo::<i16>(42_isize); 293 | ---------- ^^^^^^^^ expected `i16`, found `isize` 294 | | 295 | arguments to this function are incorrect 296 | 297note: function defined here 298 --> $DIR/numeric-suffix.rs:3:4 299 | 300LL | fn foo<N>(_x: N) {} 301 | ^^^ ----- 302help: change the type of the numeric literal from `isize` to `i16` 303 | 304LL | foo::<i16>(42_i16); 305 | ~~~ 306 307error[E0308]: mismatched types 308 --> $DIR/numeric-suffix.rs:213:16 309 | 310LL | foo::<i16>(42_i64); 311 | ---------- ^^^^^^ expected `i16`, found `i64` 312 | | 313 | arguments to this function are incorrect 314 | 315note: function defined here 316 --> $DIR/numeric-suffix.rs:3:4 317 | 318LL | fn foo<N>(_x: N) {} 319 | ^^^ ----- 320help: change the type of the numeric literal from `i64` to `i16` 321 | 322LL | foo::<i16>(42_i16); 323 | ~~~ 324 325error[E0308]: mismatched types 326 --> $DIR/numeric-suffix.rs:217:16 327 | 328LL | foo::<i16>(42_i32); 329 | ---------- ^^^^^^ expected `i16`, found `i32` 330 | | 331 | arguments to this function are incorrect 332 | 333note: function defined here 334 --> $DIR/numeric-suffix.rs:3:4 335 | 336LL | fn foo<N>(_x: N) {} 337 | ^^^ ----- 338help: change the type of the numeric literal from `i32` to `i16` 339 | 340LL | foo::<i16>(42_i16); 341 | ~~~ 342 343error[E0308]: mismatched types 344 --> $DIR/numeric-suffix.rs:222:16 345 | 346LL | foo::<i16>(42_i8); 347 | ---------- ^^^^^ expected `i16`, found `i8` 348 | | 349 | arguments to this function are incorrect 350 | 351note: function defined here 352 --> $DIR/numeric-suffix.rs:3:4 353 | 354LL | fn foo<N>(_x: N) {} 355 | ^^^ ----- 356help: change the type of the numeric literal from `i8` to `i16` 357 | 358LL | foo::<i16>(42_i16); 359 | ~~~ 360 361error[E0308]: mismatched types 362 --> $DIR/numeric-suffix.rs:226:16 363 | 364LL | foo::<i16>(42.0_f64); 365 | ---------- ^^^^^^^^ expected `i16`, found `f64` 366 | | 367 | arguments to this function are incorrect 368 | 369note: function defined here 370 --> $DIR/numeric-suffix.rs:3:4 371 | 372LL | fn foo<N>(_x: N) {} 373 | ^^^ ----- 374help: change the type of the numeric literal from `f64` to `i16` 375 | 376LL | foo::<i16>(42i16); 377 | ~~~ 378 379error[E0308]: mismatched types 380 --> $DIR/numeric-suffix.rs:230:16 381 | 382LL | foo::<i16>(42.0_f32); 383 | ---------- ^^^^^^^^ expected `i16`, found `f32` 384 | | 385 | arguments to this function are incorrect 386 | 387note: function defined here 388 --> $DIR/numeric-suffix.rs:3:4 389 | 390LL | fn foo<N>(_x: N) {} 391 | ^^^ ----- 392help: change the type of the numeric literal from `f32` to `i16` 393 | 394LL | foo::<i16>(42i16); 395 | ~~~ 396 397error[E0308]: mismatched types 398 --> $DIR/numeric-suffix.rs:235:15 399 | 400LL | foo::<u8>(42_usize); 401 | --------- ^^^^^^^^ expected `u8`, found `usize` 402 | | 403 | arguments to this function are incorrect 404 | 405note: function defined here 406 --> $DIR/numeric-suffix.rs:3:4 407 | 408LL | fn foo<N>(_x: N) {} 409 | ^^^ ----- 410help: change the type of the numeric literal from `usize` to `u8` 411 | 412LL | foo::<u8>(42_u8); 413 | ~~ 414 415error[E0308]: mismatched types 416 --> $DIR/numeric-suffix.rs:239:15 417 | 418LL | foo::<u8>(42_u64); 419 | --------- ^^^^^^ expected `u8`, found `u64` 420 | | 421 | arguments to this function are incorrect 422 | 423note: function defined here 424 --> $DIR/numeric-suffix.rs:3:4 425 | 426LL | fn foo<N>(_x: N) {} 427 | ^^^ ----- 428help: change the type of the numeric literal from `u64` to `u8` 429 | 430LL | foo::<u8>(42_u8); 431 | ~~ 432 433error[E0308]: mismatched types 434 --> $DIR/numeric-suffix.rs:243:15 435 | 436LL | foo::<u8>(42_u32); 437 | --------- ^^^^^^ expected `u8`, found `u32` 438 | | 439 | arguments to this function are incorrect 440 | 441note: function defined here 442 --> $DIR/numeric-suffix.rs:3:4 443 | 444LL | fn foo<N>(_x: N) {} 445 | ^^^ ----- 446help: change the type of the numeric literal from `u32` to `u8` 447 | 448LL | foo::<u8>(42_u8); 449 | ~~ 450 451error[E0308]: mismatched types 452 --> $DIR/numeric-suffix.rs:247:15 453 | 454LL | foo::<u8>(42_u16); 455 | --------- ^^^^^^ expected `u8`, found `u16` 456 | | 457 | arguments to this function are incorrect 458 | 459note: function defined here 460 --> $DIR/numeric-suffix.rs:3:4 461 | 462LL | fn foo<N>(_x: N) {} 463 | ^^^ ----- 464help: change the type of the numeric literal from `u16` to `u8` 465 | 466LL | foo::<u8>(42_u8); 467 | ~~ 468 469error[E0308]: mismatched types 470 --> $DIR/numeric-suffix.rs:252:15 471 | 472LL | foo::<u8>(42_isize); 473 | --------- ^^^^^^^^ expected `u8`, found `isize` 474 | | 475 | arguments to this function are incorrect 476 | 477note: function defined here 478 --> $DIR/numeric-suffix.rs:3:4 479 | 480LL | fn foo<N>(_x: N) {} 481 | ^^^ ----- 482help: change the type of the numeric literal from `isize` to `u8` 483 | 484LL | foo::<u8>(42_u8); 485 | ~~ 486 487error[E0308]: mismatched types 488 --> $DIR/numeric-suffix.rs:256:15 489 | 490LL | foo::<u8>(42_i64); 491 | --------- ^^^^^^ expected `u8`, found `i64` 492 | | 493 | arguments to this function are incorrect 494 | 495note: function defined here 496 --> $DIR/numeric-suffix.rs:3:4 497 | 498LL | fn foo<N>(_x: N) {} 499 | ^^^ ----- 500help: change the type of the numeric literal from `i64` to `u8` 501 | 502LL | foo::<u8>(42_u8); 503 | ~~ 504 505error[E0308]: mismatched types 506 --> $DIR/numeric-suffix.rs:260:15 507 | 508LL | foo::<u8>(42_i32); 509 | --------- ^^^^^^ expected `u8`, found `i32` 510 | | 511 | arguments to this function are incorrect 512 | 513note: function defined here 514 --> $DIR/numeric-suffix.rs:3:4 515 | 516LL | fn foo<N>(_x: N) {} 517 | ^^^ ----- 518help: change the type of the numeric literal from `i32` to `u8` 519 | 520LL | foo::<u8>(42_u8); 521 | ~~ 522 523error[E0308]: mismatched types 524 --> $DIR/numeric-suffix.rs:264:15 525 | 526LL | foo::<u8>(42_i16); 527 | --------- ^^^^^^ expected `u8`, found `i16` 528 | | 529 | arguments to this function are incorrect 530 | 531note: function defined here 532 --> $DIR/numeric-suffix.rs:3:4 533 | 534LL | fn foo<N>(_x: N) {} 535 | ^^^ ----- 536help: change the type of the numeric literal from `i16` to `u8` 537 | 538LL | foo::<u8>(42_u8); 539 | ~~ 540 541error[E0308]: mismatched types 542 --> $DIR/numeric-suffix.rs:268:15 543 | 544LL | foo::<u8>(42_i8); 545 | --------- ^^^^^ expected `u8`, found `i8` 546 | | 547 | arguments to this function are incorrect 548 | 549note: function defined here 550 --> $DIR/numeric-suffix.rs:3:4 551 | 552LL | fn foo<N>(_x: N) {} 553 | ^^^ ----- 554help: change the type of the numeric literal from `i8` to `u8` 555 | 556LL | foo::<u8>(42_u8); 557 | ~~ 558 559error[E0308]: mismatched types 560 --> $DIR/numeric-suffix.rs:272:15 561 | 562LL | foo::<u8>(42.0_f64); 563 | --------- ^^^^^^^^ expected `u8`, found `f64` 564 | | 565 | arguments to this function are incorrect 566 | 567note: function defined here 568 --> $DIR/numeric-suffix.rs:3:4 569 | 570LL | fn foo<N>(_x: N) {} 571 | ^^^ ----- 572help: change the type of the numeric literal from `f64` to `u8` 573 | 574LL | foo::<u8>(42u8); 575 | ~~ 576 577error[E0308]: mismatched types 578 --> $DIR/numeric-suffix.rs:276:15 579 | 580LL | foo::<u8>(42.0_f32); 581 | --------- ^^^^^^^^ expected `u8`, found `f32` 582 | | 583 | arguments to this function are incorrect 584 | 585note: function defined here 586 --> $DIR/numeric-suffix.rs:3:4 587 | 588LL | fn foo<N>(_x: N) {} 589 | ^^^ ----- 590help: change the type of the numeric literal from `f32` to `u8` 591 | 592LL | foo::<u8>(42u8); 593 | ~~ 594 595error[E0308]: mismatched types 596 --> $DIR/numeric-suffix.rs:281:15 597 | 598LL | foo::<i8>(42_usize); 599 | --------- ^^^^^^^^ expected `i8`, found `usize` 600 | | 601 | arguments to this function are incorrect 602 | 603note: function defined here 604 --> $DIR/numeric-suffix.rs:3:4 605 | 606LL | fn foo<N>(_x: N) {} 607 | ^^^ ----- 608help: change the type of the numeric literal from `usize` to `i8` 609 | 610LL | foo::<i8>(42_i8); 611 | ~~ 612 613error[E0308]: mismatched types 614 --> $DIR/numeric-suffix.rs:285:15 615 | 616LL | foo::<i8>(42_u64); 617 | --------- ^^^^^^ expected `i8`, found `u64` 618 | | 619 | arguments to this function are incorrect 620 | 621note: function defined here 622 --> $DIR/numeric-suffix.rs:3:4 623 | 624LL | fn foo<N>(_x: N) {} 625 | ^^^ ----- 626help: change the type of the numeric literal from `u64` to `i8` 627 | 628LL | foo::<i8>(42_i8); 629 | ~~ 630 631error[E0308]: mismatched types 632 --> $DIR/numeric-suffix.rs:289:15 633 | 634LL | foo::<i8>(42_u32); 635 | --------- ^^^^^^ expected `i8`, found `u32` 636 | | 637 | arguments to this function are incorrect 638 | 639note: function defined here 640 --> $DIR/numeric-suffix.rs:3:4 641 | 642LL | fn foo<N>(_x: N) {} 643 | ^^^ ----- 644help: change the type of the numeric literal from `u32` to `i8` 645 | 646LL | foo::<i8>(42_i8); 647 | ~~ 648 649error[E0308]: mismatched types 650 --> $DIR/numeric-suffix.rs:293:15 651 | 652LL | foo::<i8>(42_u16); 653 | --------- ^^^^^^ expected `i8`, found `u16` 654 | | 655 | arguments to this function are incorrect 656 | 657note: function defined here 658 --> $DIR/numeric-suffix.rs:3:4 659 | 660LL | fn foo<N>(_x: N) {} 661 | ^^^ ----- 662help: change the type of the numeric literal from `u16` to `i8` 663 | 664LL | foo::<i8>(42_i8); 665 | ~~ 666 667error[E0308]: mismatched types 668 --> $DIR/numeric-suffix.rs:297:15 669 | 670LL | foo::<i8>(42_u8); 671 | --------- ^^^^^ expected `i8`, found `u8` 672 | | 673 | arguments to this function are incorrect 674 | 675note: function defined here 676 --> $DIR/numeric-suffix.rs:3:4 677 | 678LL | fn foo<N>(_x: N) {} 679 | ^^^ ----- 680help: change the type of the numeric literal from `u8` to `i8` 681 | 682LL | foo::<i8>(42_i8); 683 | ~~ 684 685error[E0308]: mismatched types 686 --> $DIR/numeric-suffix.rs:301:15 687 | 688LL | foo::<i8>(42_isize); 689 | --------- ^^^^^^^^ expected `i8`, found `isize` 690 | | 691 | arguments to this function are incorrect 692 | 693note: function defined here 694 --> $DIR/numeric-suffix.rs:3:4 695 | 696LL | fn foo<N>(_x: N) {} 697 | ^^^ ----- 698help: change the type of the numeric literal from `isize` to `i8` 699 | 700LL | foo::<i8>(42_i8); 701 | ~~ 702 703error[E0308]: mismatched types 704 --> $DIR/numeric-suffix.rs:305:15 705 | 706LL | foo::<i8>(42_i64); 707 | --------- ^^^^^^ expected `i8`, found `i64` 708 | | 709 | arguments to this function are incorrect 710 | 711note: function defined here 712 --> $DIR/numeric-suffix.rs:3:4 713 | 714LL | fn foo<N>(_x: N) {} 715 | ^^^ ----- 716help: change the type of the numeric literal from `i64` to `i8` 717 | 718LL | foo::<i8>(42_i8); 719 | ~~ 720 721error[E0308]: mismatched types 722 --> $DIR/numeric-suffix.rs:309:15 723 | 724LL | foo::<i8>(42_i32); 725 | --------- ^^^^^^ expected `i8`, found `i32` 726 | | 727 | arguments to this function are incorrect 728 | 729note: function defined here 730 --> $DIR/numeric-suffix.rs:3:4 731 | 732LL | fn foo<N>(_x: N) {} 733 | ^^^ ----- 734help: change the type of the numeric literal from `i32` to `i8` 735 | 736LL | foo::<i8>(42_i8); 737 | ~~ 738 739error[E0308]: mismatched types 740 --> $DIR/numeric-suffix.rs:313:15 741 | 742LL | foo::<i8>(42_i16); 743 | --------- ^^^^^^ expected `i8`, found `i16` 744 | | 745 | arguments to this function are incorrect 746 | 747note: function defined here 748 --> $DIR/numeric-suffix.rs:3:4 749 | 750LL | fn foo<N>(_x: N) {} 751 | ^^^ ----- 752help: change the type of the numeric literal from `i16` to `i8` 753 | 754LL | foo::<i8>(42_i8); 755 | ~~ 756 757error[E0308]: mismatched types 758 --> $DIR/numeric-suffix.rs:318:15 759 | 760LL | foo::<i8>(42.0_f64); 761 | --------- ^^^^^^^^ expected `i8`, found `f64` 762 | | 763 | arguments to this function are incorrect 764 | 765note: function defined here 766 --> $DIR/numeric-suffix.rs:3:4 767 | 768LL | fn foo<N>(_x: N) {} 769 | ^^^ ----- 770help: change the type of the numeric literal from `f64` to `i8` 771 | 772LL | foo::<i8>(42i8); 773 | ~~ 774 775error[E0308]: mismatched types 776 --> $DIR/numeric-suffix.rs:322:15 777 | 778LL | foo::<i8>(42.0_f32); 779 | --------- ^^^^^^^^ expected `i8`, found `f32` 780 | | 781 | arguments to this function are incorrect 782 | 783note: function defined here 784 --> $DIR/numeric-suffix.rs:3:4 785 | 786LL | fn foo<N>(_x: N) {} 787 | ^^^ ----- 788help: change the type of the numeric literal from `f32` to `i8` 789 | 790LL | foo::<i8>(42i8); 791 | ~~ 792 793error[E0308]: mismatched types 794 --> $DIR/numeric-suffix.rs:327:16 795 | 796LL | foo::<f64>(42_usize); 797 | ---------- ^^^^^^^^ expected `f64`, found `usize` 798 | | 799 | arguments to this function are incorrect 800 | 801note: function defined here 802 --> $DIR/numeric-suffix.rs:3:4 803 | 804LL | fn foo<N>(_x: N) {} 805 | ^^^ ----- 806help: change the type of the numeric literal from `usize` to `f64` 807 | 808LL | foo::<f64>(42_f64); 809 | ~~~ 810 811error[E0308]: mismatched types 812 --> $DIR/numeric-suffix.rs:331:16 813 | 814LL | foo::<f64>(42_u64); 815 | ---------- ^^^^^^ expected `f64`, found `u64` 816 | | 817 | arguments to this function are incorrect 818 | 819note: function defined here 820 --> $DIR/numeric-suffix.rs:3:4 821 | 822LL | fn foo<N>(_x: N) {} 823 | ^^^ ----- 824help: change the type of the numeric literal from `u64` to `f64` 825 | 826LL | foo::<f64>(42_f64); 827 | ~~~ 828 829error[E0308]: mismatched types 830 --> $DIR/numeric-suffix.rs:335:16 831 | 832LL | foo::<f64>(42_u32); 833 | ---------- ^^^^^^ expected `f64`, found `u32` 834 | | 835 | arguments to this function are incorrect 836 | 837note: function defined here 838 --> $DIR/numeric-suffix.rs:3:4 839 | 840LL | fn foo<N>(_x: N) {} 841 | ^^^ ----- 842help: you can convert a `u32` to an `f64`, producing the floating point representation of the integer 843 | 844LL | foo::<f64>(42_u32.into()); 845 | +++++++ 846 847error[E0308]: mismatched types 848 --> $DIR/numeric-suffix.rs:339:16 849 | 850LL | foo::<f64>(42_u16); 851 | ---------- ^^^^^^ expected `f64`, found `u16` 852 | | 853 | arguments to this function are incorrect 854 | 855note: function defined here 856 --> $DIR/numeric-suffix.rs:3:4 857 | 858LL | fn foo<N>(_x: N) {} 859 | ^^^ ----- 860help: you can convert a `u16` to an `f64`, producing the floating point representation of the integer 861 | 862LL | foo::<f64>(42_u16.into()); 863 | +++++++ 864 865error[E0308]: mismatched types 866 --> $DIR/numeric-suffix.rs:343:16 867 | 868LL | foo::<f64>(42_u8); 869 | ---------- ^^^^^ expected `f64`, found `u8` 870 | | 871 | arguments to this function are incorrect 872 | 873note: function defined here 874 --> $DIR/numeric-suffix.rs:3:4 875 | 876LL | fn foo<N>(_x: N) {} 877 | ^^^ ----- 878help: you can convert a `u8` to an `f64`, producing the floating point representation of the integer 879 | 880LL | foo::<f64>(42_u8.into()); 881 | +++++++ 882 883error[E0308]: mismatched types 884 --> $DIR/numeric-suffix.rs:347:16 885 | 886LL | foo::<f64>(42_isize); 887 | ---------- ^^^^^^^^ expected `f64`, found `isize` 888 | | 889 | arguments to this function are incorrect 890 | 891note: function defined here 892 --> $DIR/numeric-suffix.rs:3:4 893 | 894LL | fn foo<N>(_x: N) {} 895 | ^^^ ----- 896help: change the type of the numeric literal from `isize` to `f64` 897 | 898LL | foo::<f64>(42_f64); 899 | ~~~ 900 901error[E0308]: mismatched types 902 --> $DIR/numeric-suffix.rs:351:16 903 | 904LL | foo::<f64>(42_i64); 905 | ---------- ^^^^^^ expected `f64`, found `i64` 906 | | 907 | arguments to this function are incorrect 908 | 909note: function defined here 910 --> $DIR/numeric-suffix.rs:3:4 911 | 912LL | fn foo<N>(_x: N) {} 913 | ^^^ ----- 914help: change the type of the numeric literal from `i64` to `f64` 915 | 916LL | foo::<f64>(42_f64); 917 | ~~~ 918 919error[E0308]: mismatched types 920 --> $DIR/numeric-suffix.rs:355:16 921 | 922LL | foo::<f64>(42_i32); 923 | ---------- ^^^^^^ expected `f64`, found `i32` 924 | | 925 | arguments to this function are incorrect 926 | 927note: function defined here 928 --> $DIR/numeric-suffix.rs:3:4 929 | 930LL | fn foo<N>(_x: N) {} 931 | ^^^ ----- 932help: you can convert an `i32` to an `f64`, producing the floating point representation of the integer 933 | 934LL | foo::<f64>(42_i32.into()); 935 | +++++++ 936 937error[E0308]: mismatched types 938 --> $DIR/numeric-suffix.rs:359:16 939 | 940LL | foo::<f64>(42_i16); 941 | ---------- ^^^^^^ expected `f64`, found `i16` 942 | | 943 | arguments to this function are incorrect 944 | 945note: function defined here 946 --> $DIR/numeric-suffix.rs:3:4 947 | 948LL | fn foo<N>(_x: N) {} 949 | ^^^ ----- 950help: you can convert an `i16` to an `f64`, producing the floating point representation of the integer 951 | 952LL | foo::<f64>(42_i16.into()); 953 | +++++++ 954 955error[E0308]: mismatched types 956 --> $DIR/numeric-suffix.rs:363:16 957 | 958LL | foo::<f64>(42_i8); 959 | ---------- ^^^^^ expected `f64`, found `i8` 960 | | 961 | arguments to this function are incorrect 962 | 963note: function defined here 964 --> $DIR/numeric-suffix.rs:3:4 965 | 966LL | fn foo<N>(_x: N) {} 967 | ^^^ ----- 968help: you can convert an `i8` to an `f64`, producing the floating point representation of the integer 969 | 970LL | foo::<f64>(42_i8.into()); 971 | +++++++ 972 973error[E0308]: mismatched types 974 --> $DIR/numeric-suffix.rs:368:16 975 | 976LL | foo::<f64>(42.0_f32); 977 | ---------- ^^^^^^^^ expected `f64`, found `f32` 978 | | 979 | arguments to this function are incorrect 980 | 981note: function defined here 982 --> $DIR/numeric-suffix.rs:3:4 983 | 984LL | fn foo<N>(_x: N) {} 985 | ^^^ ----- 986help: change the type of the numeric literal from `f32` to `f64` 987 | 988LL | foo::<f64>(42.0_f64); 989 | ~~~ 990 991error[E0308]: mismatched types 992 --> $DIR/numeric-suffix.rs:373:16 993 | 994LL | foo::<f32>(42_usize); 995 | ---------- ^^^^^^^^ expected `f32`, found `usize` 996 | | 997 | arguments to this function are incorrect 998 | 999note: function defined here 1000 --> $DIR/numeric-suffix.rs:3:4 1001 | 1002LL | fn foo<N>(_x: N) {} 1003 | ^^^ ----- 1004help: change the type of the numeric literal from `usize` to `f32` 1005 | 1006LL | foo::<f32>(42_f32); 1007 | ~~~ 1008 1009error[E0308]: mismatched types 1010 --> $DIR/numeric-suffix.rs:377:16 1011 | 1012LL | foo::<f32>(42_u64); 1013 | ---------- ^^^^^^ expected `f32`, found `u64` 1014 | | 1015 | arguments to this function are incorrect 1016 | 1017note: function defined here 1018 --> $DIR/numeric-suffix.rs:3:4 1019 | 1020LL | fn foo<N>(_x: N) {} 1021 | ^^^ ----- 1022help: change the type of the numeric literal from `u64` to `f32` 1023 | 1024LL | foo::<f32>(42_f32); 1025 | ~~~ 1026 1027error[E0308]: mismatched types 1028 --> $DIR/numeric-suffix.rs:381:16 1029 | 1030LL | foo::<f32>(42_u32); 1031 | ---------- ^^^^^^ expected `f32`, found `u32` 1032 | | 1033 | arguments to this function are incorrect 1034 | 1035note: function defined here 1036 --> $DIR/numeric-suffix.rs:3:4 1037 | 1038LL | fn foo<N>(_x: N) {} 1039 | ^^^ ----- 1040help: change the type of the numeric literal from `u32` to `f32` 1041 | 1042LL | foo::<f32>(42_f32); 1043 | ~~~ 1044 1045error[E0308]: mismatched types 1046 --> $DIR/numeric-suffix.rs:385:16 1047 | 1048LL | foo::<f32>(42_u16); 1049 | ---------- ^^^^^^ expected `f32`, found `u16` 1050 | | 1051 | arguments to this function are incorrect 1052 | 1053note: function defined here 1054 --> $DIR/numeric-suffix.rs:3:4 1055 | 1056LL | fn foo<N>(_x: N) {} 1057 | ^^^ ----- 1058help: you can convert a `u16` to an `f32`, producing the floating point representation of the integer 1059 | 1060LL | foo::<f32>(42_u16.into()); 1061 | +++++++ 1062 1063error[E0308]: mismatched types 1064 --> $DIR/numeric-suffix.rs:389:16 1065 | 1066LL | foo::<f32>(42_u8); 1067 | ---------- ^^^^^ expected `f32`, found `u8` 1068 | | 1069 | arguments to this function are incorrect 1070 | 1071note: function defined here 1072 --> $DIR/numeric-suffix.rs:3:4 1073 | 1074LL | fn foo<N>(_x: N) {} 1075 | ^^^ ----- 1076help: you can convert a `u8` to an `f32`, producing the floating point representation of the integer 1077 | 1078LL | foo::<f32>(42_u8.into()); 1079 | +++++++ 1080 1081error[E0308]: mismatched types 1082 --> $DIR/numeric-suffix.rs:393:16 1083 | 1084LL | foo::<f32>(42_isize); 1085 | ---------- ^^^^^^^^ expected `f32`, found `isize` 1086 | | 1087 | arguments to this function are incorrect 1088 | 1089note: function defined here 1090 --> $DIR/numeric-suffix.rs:3:4 1091 | 1092LL | fn foo<N>(_x: N) {} 1093 | ^^^ ----- 1094help: change the type of the numeric literal from `isize` to `f32` 1095 | 1096LL | foo::<f32>(42_f32); 1097 | ~~~ 1098 1099error[E0308]: mismatched types 1100 --> $DIR/numeric-suffix.rs:397:16 1101 | 1102LL | foo::<f32>(42_i64); 1103 | ---------- ^^^^^^ expected `f32`, found `i64` 1104 | | 1105 | arguments to this function are incorrect 1106 | 1107note: function defined here 1108 --> $DIR/numeric-suffix.rs:3:4 1109 | 1110LL | fn foo<N>(_x: N) {} 1111 | ^^^ ----- 1112help: change the type of the numeric literal from `i64` to `f32` 1113 | 1114LL | foo::<f32>(42_f32); 1115 | ~~~ 1116 1117error[E0308]: mismatched types 1118 --> $DIR/numeric-suffix.rs:401:16 1119 | 1120LL | foo::<f32>(42_i32); 1121 | ---------- ^^^^^^ expected `f32`, found `i32` 1122 | | 1123 | arguments to this function are incorrect 1124 | 1125note: function defined here 1126 --> $DIR/numeric-suffix.rs:3:4 1127 | 1128LL | fn foo<N>(_x: N) {} 1129 | ^^^ ----- 1130help: change the type of the numeric literal from `i32` to `f32` 1131 | 1132LL | foo::<f32>(42_f32); 1133 | ~~~ 1134 1135error[E0308]: mismatched types 1136 --> $DIR/numeric-suffix.rs:405:16 1137 | 1138LL | foo::<f32>(42_i16); 1139 | ---------- ^^^^^^ expected `f32`, found `i16` 1140 | | 1141 | arguments to this function are incorrect 1142 | 1143note: function defined here 1144 --> $DIR/numeric-suffix.rs:3:4 1145 | 1146LL | fn foo<N>(_x: N) {} 1147 | ^^^ ----- 1148help: you can convert an `i16` to an `f32`, producing the floating point representation of the integer 1149 | 1150LL | foo::<f32>(42_i16.into()); 1151 | +++++++ 1152 1153error[E0308]: mismatched types 1154 --> $DIR/numeric-suffix.rs:409:16 1155 | 1156LL | foo::<f32>(42_i8); 1157 | ---------- ^^^^^ expected `f32`, found `i8` 1158 | | 1159 | arguments to this function are incorrect 1160 | 1161note: function defined here 1162 --> $DIR/numeric-suffix.rs:3:4 1163 | 1164LL | fn foo<N>(_x: N) {} 1165 | ^^^ ----- 1166help: you can convert an `i8` to an `f32`, producing the floating point representation of the integer 1167 | 1168LL | foo::<f32>(42_i8.into()); 1169 | +++++++ 1170 1171error[E0308]: mismatched types 1172 --> $DIR/numeric-suffix.rs:413:16 1173 | 1174LL | foo::<f32>(42.0_f64); 1175 | ---------- ^^^^^^^^ expected `f32`, found `f64` 1176 | | 1177 | arguments to this function are incorrect 1178 | 1179note: function defined here 1180 --> $DIR/numeric-suffix.rs:3:4 1181 | 1182LL | fn foo<N>(_x: N) {} 1183 | ^^^ ----- 1184help: change the type of the numeric literal from `f64` to `f32` 1185 | 1186LL | foo::<f32>(42.0_f32); 1187 | ~~~ 1188 1189error[E0308]: mismatched types 1190 --> $DIR/numeric-suffix.rs:419:16 1191 | 1192LL | foo::<u32>(42_u8 as u16); 1193 | ---------- ^^^^^^^^^^^^ expected `u32`, found `u16` 1194 | | 1195 | arguments to this function are incorrect 1196 | 1197note: function defined here 1198 --> $DIR/numeric-suffix.rs:3:4 1199 | 1200LL | fn foo<N>(_x: N) {} 1201 | ^^^ ----- 1202help: you can convert a `u16` to a `u32` 1203 | 1204LL | foo::<u32>((42_u8 as u16).into()); 1205 | + ++++++++ 1206 1207error[E0308]: mismatched types 1208 --> $DIR/numeric-suffix.rs:423:16 1209 | 1210LL | foo::<i32>(-42_i8); 1211 | ---------- ^^^^^^ expected `i32`, found `i8` 1212 | | 1213 | arguments to this function are incorrect 1214 | 1215note: function defined here 1216 --> $DIR/numeric-suffix.rs:3:4 1217 | 1218LL | fn foo<N>(_x: N) {} 1219 | ^^^ ----- 1220help: you can convert an `i8` to an `i32` 1221 | 1222LL | foo::<i32>((-42_i8).into()); 1223 | + ++++++++ 1224 1225error: aborting due to 68 previous errors 1226 1227For more information about this error, try `rustc --explain E0308`.