rust/tests/ui/limits/huge-static.stderr
Ralf Jung 17946c22b1 const-eval error: always say in which item the error occurred
also adjust the wording a little so that we don't say "the error occurred here" for two different spans
2025-06-07 13:42:30 +02:00

15 lines
707 B
Text

error[E0080]: values of the type `[u8; 2305843009213693952]` are too big for the target architecture
--> $DIR/huge-static.rs:18:1
|
LL | static MY_TOO_BIG_ARRAY_1: TooBigArray = TooBigArray::new();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `MY_TOO_BIG_ARRAY_1` failed here
error[E0080]: values of the type `[u8; 2305843009213693952]` are too big for the target architecture
--> $DIR/huge-static.rs:20:1
|
LL | static MY_TOO_BIG_ARRAY_2: [u8; HUGE_SIZE] = [0x00; HUGE_SIZE];
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `MY_TOO_BIG_ARRAY_2` failed here
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0080`.