1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023
|
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:19:22
|
LL | const _NI8_SHL: i8 = 1i8 << 8;
| ^^^^^^^^ attempt to shift left by `8_i32`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:20:26
|
LL | const _NI8_SHL_P: &i8 = &(1i8 << 8);
| ^^^^^^^^^^ attempt to shift left by `8_i32`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:22:24
|
LL | const _NI16_SHL: i16 = 1i16 << 16;
| ^^^^^^^^^^ attempt to shift left by `16_i32`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:23:28
|
LL | const _NI16_SHL_P: &i16 = &(1i16 << 16);
| ^^^^^^^^^^^^ attempt to shift left by `16_i32`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:25:24
|
LL | const _NI32_SHL: i32 = 1i32 << 32;
| ^^^^^^^^^^ attempt to shift left by `32_i32`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:26:28
|
LL | const _NI32_SHL_P: &i32 = &(1i32 << 32);
| ^^^^^^^^^^^^ attempt to shift left by `32_i32`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:28:24
|
LL | const _NI64_SHL: i64 = 1i64 << 64;
| ^^^^^^^^^^ attempt to shift left by `64_i32`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:29:28
|
LL | const _NI64_SHL_P: &i64 = &(1i64 << 64);
| ^^^^^^^^^^^^ attempt to shift left by `64_i32`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:31:26
|
LL | const _NI128_SHL: i128 = 1i128 << 128;
| ^^^^^^^^^^^^ attempt to shift left by `128_i32`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:32:30
|
LL | const _NI128_SHL_P: &i128 = &(1i128 << 128);
| ^^^^^^^^^^^^^^ attempt to shift left by `128_i32`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:34:22
|
LL | const _NU8_SHL: u8 = 1u8 << 8;
| ^^^^^^^^ attempt to shift left by `8_i32`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:35:26
|
LL | const _NU8_SHL_P: &u8 = &(1u8 << 8);
| ^^^^^^^^^^ attempt to shift left by `8_i32`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:37:24
|
LL | const _NU16_SHL: u16 = 1u16 << 16;
| ^^^^^^^^^^ attempt to shift left by `16_i32`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:38:28
|
LL | const _NU16_SHL_P: &u16 = &(1u16 << 16);
| ^^^^^^^^^^^^ attempt to shift left by `16_i32`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:40:24
|
LL | const _NU32_SHL: u32 = 1u32 << 32;
| ^^^^^^^^^^ attempt to shift left by `32_i32`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:41:28
|
LL | const _NU32_SHL_P: &u32 = &(1u32 << 32);
| ^^^^^^^^^^^^ attempt to shift left by `32_i32`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:43:24
|
LL | const _NU64_SHL: u64 = 1u64 << 64;
| ^^^^^^^^^^ attempt to shift left by `64_i32`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:44:28
|
LL | const _NU64_SHL_P: &u64 = &(1u64 << 64);
| ^^^^^^^^^^^^ attempt to shift left by `64_i32`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:46:26
|
LL | const _NU128_SHL: u128 = 1u128 << 128;
| ^^^^^^^^^^^^ attempt to shift left by `128_i32`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:47:30
|
LL | const _NU128_SHL_P: &u128 = &(1u128 << 128);
| ^^^^^^^^^^^^^^ attempt to shift left by `128_i32`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:49:28
|
LL | const _NISIZE_SHL: isize = 1isize << BITS;
| ^^^^^^^^^^^^^^ attempt to shift left by `%BITS%`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:50:32
|
LL | const _NISIZE_SHL_P: &isize = &(1isize << BITS);
| ^^^^^^^^^^^^^^^^ attempt to shift left by `%BITS%`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:52:28
|
LL | const _NUSIZE_SHL: usize = 1usize << BITS;
| ^^^^^^^^^^^^^^ attempt to shift left by `%BITS%`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:53:32
|
LL | const _NUSIZE_SHL_P: &usize = &(1usize << BITS);
| ^^^^^^^^^^^^^^^^ attempt to shift left by `%BITS%`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:57:22
|
LL | const _NI8_SHR: i8 = 1i8 >> 8;
| ^^^^^^^^ attempt to shift right by `8_i32`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:58:26
|
LL | const _NI8_SHR_P: &i8 = &(1i8 >> 8);
| ^^^^^^^^^^ attempt to shift right by `8_i32`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:60:24
|
LL | const _NI16_SHR: i16 = 1i16 >> 16;
| ^^^^^^^^^^ attempt to shift right by `16_i32`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:61:28
|
LL | const _NI16_SHR_P: &i16 = &(1i16 >> 16);
| ^^^^^^^^^^^^ attempt to shift right by `16_i32`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:63:24
|
LL | const _NI32_SHR: i32 = 1i32 >> 32;
| ^^^^^^^^^^ attempt to shift right by `32_i32`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:64:28
|
LL | const _NI32_SHR_P: &i32 = &(1i32 >> 32);
| ^^^^^^^^^^^^ attempt to shift right by `32_i32`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:66:24
|
LL | const _NI64_SHR: i64 = 1i64 >> 64;
| ^^^^^^^^^^ attempt to shift right by `64_i32`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:67:28
|
LL | const _NI64_SHR_P: &i64 = &(1i64 >> 64);
| ^^^^^^^^^^^^ attempt to shift right by `64_i32`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:69:26
|
LL | const _NI128_SHR: i128 = 1i128 >> 128;
| ^^^^^^^^^^^^ attempt to shift right by `128_i32`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:70:30
|
LL | const _NI128_SHR_P: &i128 = &(1i128 >> 128);
| ^^^^^^^^^^^^^^ attempt to shift right by `128_i32`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:72:22
|
LL | const _NU8_SHR: u8 = 1u8 >> 8;
| ^^^^^^^^ attempt to shift right by `8_i32`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:73:26
|
LL | const _NU8_SHR_P: &u8 = &(1u8 >> 8);
| ^^^^^^^^^^ attempt to shift right by `8_i32`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:75:24
|
LL | const _NU16_SHR: u16 = 1u16 >> 16;
| ^^^^^^^^^^ attempt to shift right by `16_i32`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:76:28
|
LL | const _NU16_SHR_P: &u16 = &(1u16 >> 16);
| ^^^^^^^^^^^^ attempt to shift right by `16_i32`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:78:24
|
LL | const _NU32_SHR: u32 = 1u32 >> 32;
| ^^^^^^^^^^ attempt to shift right by `32_i32`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:79:28
|
LL | const _NU32_SHR_P: &u32 = &(1u32 >> 32);
| ^^^^^^^^^^^^ attempt to shift right by `32_i32`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:81:24
|
LL | const _NU64_SHR: u64 = 1u64 >> 64;
| ^^^^^^^^^^ attempt to shift right by `64_i32`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:82:28
|
LL | const _NU64_SHR_P: &u64 = &(1u64 >> 64);
| ^^^^^^^^^^^^ attempt to shift right by `64_i32`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:84:26
|
LL | const _NU128_SHR: u128 = 1u128 >> 128;
| ^^^^^^^^^^^^ attempt to shift right by `128_i32`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:85:30
|
LL | const _NU128_SHR_P: &u128 = &(1u128 >> 128);
| ^^^^^^^^^^^^^^ attempt to shift right by `128_i32`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:87:28
|
LL | const _NISIZE_SHR: isize = 1isize >> BITS;
| ^^^^^^^^^^^^^^ attempt to shift right by `%BITS%`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:88:32
|
LL | const _NISIZE_SHR_P: &isize = &(1isize >> BITS);
| ^^^^^^^^^^^^^^^^ attempt to shift right by `%BITS%`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:90:28
|
LL | const _NUSIZE_SHR: usize = 1usize >> BITS;
| ^^^^^^^^^^^^^^ attempt to shift right by `%BITS%`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:91:32
|
LL | const _NUSIZE_SHR_P: &usize = &(1usize >> BITS);
| ^^^^^^^^^^^^^^^^ attempt to shift right by `%BITS%`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:95:22
|
LL | const _NI8_ADD: i8 = 1i8 + i8::MAX;
| ^^^^^^^^^^^^^ attempt to compute `1_i8 + i8::MAX`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:96:26
|
LL | const _NI8_ADD_P: &i8 = &(1i8 + i8::MAX);
| ^^^^^^^^^^^^^^^ attempt to compute `1_i8 + i8::MAX`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:98:24
|
LL | const _NI16_ADD: i16 = 1i16 + i16::MAX;
| ^^^^^^^^^^^^^^^ attempt to compute `1_i16 + i16::MAX`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:99:28
|
LL | const _NI16_ADD_P: &i16 = &(1i16 + i16::MAX);
| ^^^^^^^^^^^^^^^^^ attempt to compute `1_i16 + i16::MAX`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:101:24
|
LL | const _NI32_ADD: i32 = 1i32 + i32::MAX;
| ^^^^^^^^^^^^^^^ attempt to compute `1_i32 + i32::MAX`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:102:28
|
LL | const _NI32_ADD_P: &i32 = &(1i32 + i32::MAX);
| ^^^^^^^^^^^^^^^^^ attempt to compute `1_i32 + i32::MAX`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:104:24
|
LL | const _NI64_ADD: i64 = 1i64 + i64::MAX;
| ^^^^^^^^^^^^^^^ attempt to compute `1_i64 + i64::MAX`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:105:28
|
LL | const _NI64_ADD_P: &i64 = &(1i64 + i64::MAX);
| ^^^^^^^^^^^^^^^^^ attempt to compute `1_i64 + i64::MAX`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:107:26
|
LL | const _NI128_ADD: i128 = 1i128 + i128::MAX;
| ^^^^^^^^^^^^^^^^^ attempt to compute `1_i128 + i128::MAX`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:108:30
|
LL | const _NI128_ADD_P: &i128 = &(1i128 + i128::MAX);
| ^^^^^^^^^^^^^^^^^^^ attempt to compute `1_i128 + i128::MAX`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:110:22
|
LL | const _NU8_ADD: u8 = 1u8 + u8::MAX;
| ^^^^^^^^^^^^^ attempt to compute `1_u8 + u8::MAX`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:111:26
|
LL | const _NU8_ADD_P: &u8 = &(1u8 + u8::MAX);
| ^^^^^^^^^^^^^^^ attempt to compute `1_u8 + u8::MAX`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:113:24
|
LL | const _NU16_ADD: u16 = 1u16 + u16::MAX;
| ^^^^^^^^^^^^^^^ attempt to compute `1_u16 + u16::MAX`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:114:28
|
LL | const _NU16_ADD_P: &u16 = &(1u16 + u16::MAX);
| ^^^^^^^^^^^^^^^^^ attempt to compute `1_u16 + u16::MAX`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:116:24
|
LL | const _NU32_ADD: u32 = 1u32 + u32::MAX;
| ^^^^^^^^^^^^^^^ attempt to compute `1_u32 + u32::MAX`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:117:28
|
LL | const _NU32_ADD_P: &u32 = &(1u32 + u32::MAX);
| ^^^^^^^^^^^^^^^^^ attempt to compute `1_u32 + u32::MAX`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:119:24
|
LL | const _NU64_ADD: u64 = 1u64 + u64::MAX;
| ^^^^^^^^^^^^^^^ attempt to compute `1_u64 + u64::MAX`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:120:28
|
LL | const _NU64_ADD_P: &u64 = &(1u64 + u64::MAX);
| ^^^^^^^^^^^^^^^^^ attempt to compute `1_u64 + u64::MAX`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:122:26
|
LL | const _NU128_ADD: u128 = 1u128 + u128::MAX;
| ^^^^^^^^^^^^^^^^^ attempt to compute `1_u128 + u128::MAX`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:123:30
|
LL | const _NU128_ADD_P: &u128 = &(1u128 + u128::MAX);
| ^^^^^^^^^^^^^^^^^^^ attempt to compute `1_u128 + u128::MAX`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:125:28
|
LL | const _NISIZE_ADD: isize = 1isize + isize::MAX;
| ^^^^^^^^^^^^^^^^^^^ attempt to compute `1_isize + isize::MAX`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:126:32
|
LL | const _NISIZE_ADD_P: &isize = &(1isize + isize::MAX);
| ^^^^^^^^^^^^^^^^^^^^^ attempt to compute `1_isize + isize::MAX`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:128:28
|
LL | const _NUSIZE_ADD: usize = 1usize + usize::MAX;
| ^^^^^^^^^^^^^^^^^^^ attempt to compute `1_usize + usize::MAX`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:129:32
|
LL | const _NUSIZE_ADD_P: &usize = &(1usize + usize::MAX);
| ^^^^^^^^^^^^^^^^^^^^^ attempt to compute `1_usize + usize::MAX`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:133:22
|
LL | const _NI8_SUB: i8 = -5i8 - i8::MAX;
| ^^^^^^^^^^^^^^ attempt to compute `-5_i8 - i8::MAX`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:134:26
|
LL | const _NI8_SUB_P: &i8 = &(-5i8 - i8::MAX);
| ^^^^^^^^^^^^^^^^ attempt to compute `-5_i8 - i8::MAX`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:136:24
|
LL | const _NI16_SUB: i16 = -5i16 - i16::MAX;
| ^^^^^^^^^^^^^^^^ attempt to compute `-5_i16 - i16::MAX`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:137:28
|
LL | const _NI16_SUB_P: &i16 = &(-5i16 - i16::MAX);
| ^^^^^^^^^^^^^^^^^^ attempt to compute `-5_i16 - i16::MAX`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:139:24
|
LL | const _NI32_SUB: i32 = -5i32 - i32::MAX;
| ^^^^^^^^^^^^^^^^ attempt to compute `-5_i32 - i32::MAX`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:140:28
|
LL | const _NI32_SUB_P: &i32 = &(-5i32 - i32::MAX);
| ^^^^^^^^^^^^^^^^^^ attempt to compute `-5_i32 - i32::MAX`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:142:24
|
LL | const _NI64_SUB: i64 = -5i64 - i64::MAX;
| ^^^^^^^^^^^^^^^^ attempt to compute `-5_i64 - i64::MAX`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:143:28
|
LL | const _NI64_SUB_P: &i64 = &(-5i64 - i64::MAX);
| ^^^^^^^^^^^^^^^^^^ attempt to compute `-5_i64 - i64::MAX`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:145:26
|
LL | const _NI128_SUB: i128 = -5i128 - i128::MAX;
| ^^^^^^^^^^^^^^^^^^ attempt to compute `-5_i128 - i128::MAX`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:146:30
|
LL | const _NI128_SUB_P: &i128 = &(-5i128 - i128::MAX);
| ^^^^^^^^^^^^^^^^^^^^ attempt to compute `-5_i128 - i128::MAX`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:148:22
|
LL | const _NU8_SUB: u8 = 1u8 - 5;
| ^^^^^^^ attempt to compute `1_u8 - 5_u8`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:149:26
|
LL | const _NU8_SUB_P: &u8 = &(1u8 - 5);
| ^^^^^^^^^ attempt to compute `1_u8 - 5_u8`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:151:24
|
LL | const _NU16_SUB: u16 = 1u16 - 5;
| ^^^^^^^^ attempt to compute `1_u16 - 5_u16`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:152:28
|
LL | const _NU16_SUB_P: &u16 = &(1u16 - 5);
| ^^^^^^^^^^ attempt to compute `1_u16 - 5_u16`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:154:24
|
LL | const _NU32_SUB: u32 = 1u32 - 5;
| ^^^^^^^^ attempt to compute `1_u32 - 5_u32`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:155:28
|
LL | const _NU32_SUB_P: &u32 = &(1u32 - 5);
| ^^^^^^^^^^ attempt to compute `1_u32 - 5_u32`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:157:24
|
LL | const _NU64_SUB: u64 = 1u64 - 5;
| ^^^^^^^^ attempt to compute `1_u64 - 5_u64`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:158:28
|
LL | const _NU64_SUB_P: &u64 = &(1u64 - 5);
| ^^^^^^^^^^ attempt to compute `1_u64 - 5_u64`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:160:26
|
LL | const _NU128_SUB: u128 = 1u128 - 5;
| ^^^^^^^^^ attempt to compute `1_u128 - 5_u128`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:161:30
|
LL | const _NU128_SUB_P: &u128 = &(1u128 - 5);
| ^^^^^^^^^^^ attempt to compute `1_u128 - 5_u128`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:163:28
|
LL | const _NISIZE_SUB: isize = -5isize - isize::MAX;
| ^^^^^^^^^^^^^^^^^^^^ attempt to compute `-5_isize - isize::MAX`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:164:32
|
LL | const _NISIZE_SUB_P: &isize = &(-5isize - isize::MAX);
| ^^^^^^^^^^^^^^^^^^^^^^ attempt to compute `-5_isize - isize::MAX`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:166:28
|
LL | const _NUSIZE_SUB: usize = 1usize - 5 ;
| ^^^^^^^^^^ attempt to compute `1_usize - 5_usize`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:167:32
|
LL | const _NUSIZE_SUB_P: &usize = &(1usize - 5 );
| ^^^^^^^^^^^^^ attempt to compute `1_usize - 5_usize`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:171:22
|
LL | const _NI8_MUL: i8 = i8::MAX * 5;
| ^^^^^^^^^^^ attempt to compute `i8::MAX * 5_i8`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:172:26
|
LL | const _NI8_MUL_P: &i8 = &(i8::MAX * 5);
| ^^^^^^^^^^^^^ attempt to compute `i8::MAX * 5_i8`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:174:24
|
LL | const _NI16_MUL: i16 = i16::MAX * 5;
| ^^^^^^^^^^^^ attempt to compute `i16::MAX * 5_i16`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:175:28
|
LL | const _NI16_MUL_P: &i16 = &(i16::MAX * 5);
| ^^^^^^^^^^^^^^ attempt to compute `i16::MAX * 5_i16`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:177:24
|
LL | const _NI32_MUL: i32 = i32::MAX * 5;
| ^^^^^^^^^^^^ attempt to compute `i32::MAX * 5_i32`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:178:28
|
LL | const _NI32_MUL_P: &i32 = &(i32::MAX * 5);
| ^^^^^^^^^^^^^^ attempt to compute `i32::MAX * 5_i32`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:180:24
|
LL | const _NI64_MUL: i64 = i64::MAX * 5;
| ^^^^^^^^^^^^ attempt to compute `i64::MAX * 5_i64`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:181:28
|
LL | const _NI64_MUL_P: &i64 = &(i64::MAX * 5);
| ^^^^^^^^^^^^^^ attempt to compute `i64::MAX * 5_i64`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:183:26
|
LL | const _NI128_MUL: i128 = i128::MAX * 5;
| ^^^^^^^^^^^^^ attempt to compute `i128::MAX * 5_i128`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:184:30
|
LL | const _NI128_MUL_P: &i128 = &(i128::MAX * 5);
| ^^^^^^^^^^^^^^^ attempt to compute `i128::MAX * 5_i128`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:186:22
|
LL | const _NU8_MUL: u8 = u8::MAX * 5;
| ^^^^^^^^^^^ attempt to compute `u8::MAX * 5_u8`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:187:26
|
LL | const _NU8_MUL_P: &u8 = &(u8::MAX * 5);
| ^^^^^^^^^^^^^ attempt to compute `u8::MAX * 5_u8`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:189:24
|
LL | const _NU16_MUL: u16 = u16::MAX * 5;
| ^^^^^^^^^^^^ attempt to compute `u16::MAX * 5_u16`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:190:28
|
LL | const _NU16_MUL_P: &u16 = &(u16::MAX * 5);
| ^^^^^^^^^^^^^^ attempt to compute `u16::MAX * 5_u16`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:192:24
|
LL | const _NU32_MUL: u32 = u32::MAX * 5;
| ^^^^^^^^^^^^ attempt to compute `u32::MAX * 5_u32`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:193:28
|
LL | const _NU32_MUL_P: &u32 = &(u32::MAX * 5);
| ^^^^^^^^^^^^^^ attempt to compute `u32::MAX * 5_u32`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:195:24
|
LL | const _NU64_MUL: u64 = u64::MAX * 5;
| ^^^^^^^^^^^^ attempt to compute `u64::MAX * 5_u64`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:196:28
|
LL | const _NU64_MUL_P: &u64 = &(u64::MAX * 5);
| ^^^^^^^^^^^^^^ attempt to compute `u64::MAX * 5_u64`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:198:26
|
LL | const _NU128_MUL: u128 = u128::MAX * 5;
| ^^^^^^^^^^^^^ attempt to compute `u128::MAX * 5_u128`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:199:30
|
LL | const _NU128_MUL_P: &u128 = &(u128::MAX * 5);
| ^^^^^^^^^^^^^^^ attempt to compute `u128::MAX * 5_u128`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:201:28
|
LL | const _NISIZE_MUL: isize = isize::MAX * 5;
| ^^^^^^^^^^^^^^ attempt to compute `isize::MAX * 5_isize`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:202:32
|
LL | const _NISIZE_MUL_P: &isize = &(isize::MAX * 5);
| ^^^^^^^^^^^^^^^^ attempt to compute `isize::MAX * 5_isize`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:204:28
|
LL | const _NUSIZE_MUL: usize = usize::MAX * 5;
| ^^^^^^^^^^^^^^ attempt to compute `usize::MAX * 5_usize`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:205:32
|
LL | const _NUSIZE_MUL_P: &usize = &(usize::MAX * 5);
| ^^^^^^^^^^^^^^^^ attempt to compute `usize::MAX * 5_usize`, which would overflow
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:209:22
|
LL | const _NI8_DIV: i8 = 1i8 / 0;
| ^^^^^^^ attempt to divide `1_i8` by zero
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:210:26
|
LL | const _NI8_DIV_P: &i8 = &(1i8 / 0);
| ^^^^^^^^^ attempt to divide `1_i8` by zero
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:212:24
|
LL | const _NI16_DIV: i16 = 1i16 / 0;
| ^^^^^^^^ attempt to divide `1_i16` by zero
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:213:28
|
LL | const _NI16_DIV_P: &i16 = &(1i16 / 0);
| ^^^^^^^^^^ attempt to divide `1_i16` by zero
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:215:24
|
LL | const _NI32_DIV: i32 = 1i32 / 0;
| ^^^^^^^^ attempt to divide `1_i32` by zero
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:216:28
|
LL | const _NI32_DIV_P: &i32 = &(1i32 / 0);
| ^^^^^^^^^^ attempt to divide `1_i32` by zero
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:218:24
|
LL | const _NI64_DIV: i64 = 1i64 / 0;
| ^^^^^^^^ attempt to divide `1_i64` by zero
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:219:28
|
LL | const _NI64_DIV_P: &i64 = &(1i64 / 0);
| ^^^^^^^^^^ attempt to divide `1_i64` by zero
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:221:26
|
LL | const _NI128_DIV: i128 = 1i128 / 0;
| ^^^^^^^^^ attempt to divide `1_i128` by zero
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:222:30
|
LL | const _NI128_DIV_P: &i128 = &(1i128 / 0);
| ^^^^^^^^^^^ attempt to divide `1_i128` by zero
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:224:22
|
LL | const _NU8_DIV: u8 = 1u8 / 0;
| ^^^^^^^ attempt to divide `1_u8` by zero
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:225:26
|
LL | const _NU8_DIV_P: &u8 = &(1u8 / 0);
| ^^^^^^^^^ attempt to divide `1_u8` by zero
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:227:24
|
LL | const _NU16_DIV: u16 = 1u16 / 0;
| ^^^^^^^^ attempt to divide `1_u16` by zero
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:228:28
|
LL | const _NU16_DIV_P: &u16 = &(1u16 / 0);
| ^^^^^^^^^^ attempt to divide `1_u16` by zero
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:230:24
|
LL | const _NU32_DIV: u32 = 1u32 / 0;
| ^^^^^^^^ attempt to divide `1_u32` by zero
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:231:28
|
LL | const _NU32_DIV_P: &u32 = &(1u32 / 0);
| ^^^^^^^^^^ attempt to divide `1_u32` by zero
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:233:24
|
LL | const _NU64_DIV: u64 = 1u64 / 0;
| ^^^^^^^^ attempt to divide `1_u64` by zero
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:234:28
|
LL | const _NU64_DIV_P: &u64 = &(1u64 / 0);
| ^^^^^^^^^^ attempt to divide `1_u64` by zero
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:236:26
|
LL | const _NU128_DIV: u128 = 1u128 / 0;
| ^^^^^^^^^ attempt to divide `1_u128` by zero
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:237:30
|
LL | const _NU128_DIV_P: &u128 = &(1u128 / 0);
| ^^^^^^^^^^^ attempt to divide `1_u128` by zero
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:239:28
|
LL | const _NISIZE_DIV: isize = 1isize / 0;
| ^^^^^^^^^^ attempt to divide `1_isize` by zero
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:240:32
|
LL | const _NISIZE_DIV_P: &isize = &(1isize / 0);
| ^^^^^^^^^^^^ attempt to divide `1_isize` by zero
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:242:28
|
LL | const _NUSIZE_DIV: usize = 1usize / 0;
| ^^^^^^^^^^ attempt to divide `1_usize` by zero
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:243:32
|
LL | const _NUSIZE_DIV_P: &usize = &(1usize / 0);
| ^^^^^^^^^^^^ attempt to divide `1_usize` by zero
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:246:22
|
LL | const _NI8_MOD: i8 = 1i8 % 0;
| ^^^^^^^ attempt to calculate the remainder of `1_i8` with a divisor of zero
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:247:26
|
LL | const _NI8_MOD_P: &i8 = &(1i8 % 0);
| ^^^^^^^^^ attempt to calculate the remainder of `1_i8` with a divisor of zero
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:249:24
|
LL | const _NI16_MOD: i16 = 1i16 % 0;
| ^^^^^^^^ attempt to calculate the remainder of `1_i16` with a divisor of zero
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:250:28
|
LL | const _NI16_MOD_P: &i16 = &(1i16 % 0);
| ^^^^^^^^^^ attempt to calculate the remainder of `1_i16` with a divisor of zero
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:252:24
|
LL | const _NI32_MOD: i32 = 1i32 % 0;
| ^^^^^^^^ attempt to calculate the remainder of `1_i32` with a divisor of zero
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:253:28
|
LL | const _NI32_MOD_P: &i32 = &(1i32 % 0);
| ^^^^^^^^^^ attempt to calculate the remainder of `1_i32` with a divisor of zero
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:255:24
|
LL | const _NI64_MOD: i64 = 1i64 % 0;
| ^^^^^^^^ attempt to calculate the remainder of `1_i64` with a divisor of zero
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:256:28
|
LL | const _NI64_MOD_P: &i64 = &(1i64 % 0);
| ^^^^^^^^^^ attempt to calculate the remainder of `1_i64` with a divisor of zero
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:258:26
|
LL | const _NI128_MOD: i128 = 1i128 % 0;
| ^^^^^^^^^ attempt to calculate the remainder of `1_i128` with a divisor of zero
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:259:30
|
LL | const _NI128_MOD_P: &i128 = &(1i128 % 0);
| ^^^^^^^^^^^ attempt to calculate the remainder of `1_i128` with a divisor of zero
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:261:22
|
LL | const _NU8_MOD: u8 = 1u8 % 0;
| ^^^^^^^ attempt to calculate the remainder of `1_u8` with a divisor of zero
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:262:26
|
LL | const _NU8_MOD_P: &u8 = &(1u8 % 0);
| ^^^^^^^^^ attempt to calculate the remainder of `1_u8` with a divisor of zero
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:264:24
|
LL | const _NU16_MOD: u16 = 1u16 % 0;
| ^^^^^^^^ attempt to calculate the remainder of `1_u16` with a divisor of zero
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:265:28
|
LL | const _NU16_MOD_P: &u16 = &(1u16 % 0);
| ^^^^^^^^^^ attempt to calculate the remainder of `1_u16` with a divisor of zero
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:267:24
|
LL | const _NU32_MOD: u32 = 1u32 % 0;
| ^^^^^^^^ attempt to calculate the remainder of `1_u32` with a divisor of zero
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:268:28
|
LL | const _NU32_MOD_P: &u32 = &(1u32 % 0);
| ^^^^^^^^^^ attempt to calculate the remainder of `1_u32` with a divisor of zero
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:270:24
|
LL | const _NU64_MOD: u64 = 1u64 % 0;
| ^^^^^^^^ attempt to calculate the remainder of `1_u64` with a divisor of zero
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:271:28
|
LL | const _NU64_MOD_P: &u64 = &(1u64 % 0);
| ^^^^^^^^^^ attempt to calculate the remainder of `1_u64` with a divisor of zero
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:273:26
|
LL | const _NU128_MOD: u128 = 1u128 % 0;
| ^^^^^^^^^ attempt to calculate the remainder of `1_u128` with a divisor of zero
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:274:30
|
LL | const _NU128_MOD_P: &u128 = &(1u128 % 0);
| ^^^^^^^^^^^ attempt to calculate the remainder of `1_u128` with a divisor of zero
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:276:28
|
LL | const _NISIZE_MOD: isize = 1isize % 0;
| ^^^^^^^^^^ attempt to calculate the remainder of `1_isize` with a divisor of zero
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:277:32
|
LL | const _NISIZE_MOD_P: &isize = &(1isize % 0);
| ^^^^^^^^^^^^ attempt to calculate the remainder of `1_isize` with a divisor of zero
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:279:28
|
LL | const _NUSIZE_MOD: usize = 1usize % 0;
| ^^^^^^^^^^ attempt to calculate the remainder of `1_usize` with a divisor of zero
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:280:32
|
LL | const _NUSIZE_MOD_P: &usize = &(1usize % 0);
| ^^^^^^^^^^^^ attempt to calculate the remainder of `1_usize` with a divisor of zero
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:284:24
|
LL | const _NI32_OOB: i32 = [1, 2, 3][4];
| ^^^^^^^^^^^^ index out of bounds: the length is 3 but the index is 4
error[E0080]: evaluation of constant value failed
--> $DIR/overflowing-consts.rs:285:28
|
LL | const _NI32_OOB_P: &i32 = &([1, 2, 3][4]);
| ^^^^^^^^^^^^^^ index out of bounds: the length is 3 but the index is 4
error: aborting due to 170 previous errors
For more information about this error, try `rustc --explain E0080`.
|