fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0080]: evaluation of constant value failed 2 --> $SRC_DIR/core/src/mem/mod.rs:LL:COL 3 | 4 = note: values of the type `[u8; usize::MAX]` are too big for the current architecture 5 | 6note: inside `std::mem::size_of::<[u8; usize::MAX]>` 7 --> $SRC_DIR/core/src/mem/mod.rs:LL:COL 8note: inside `main` 9 --> $DIR/issue-55878.rs:7:26 10 | 11LL | println!("Size: {}", std::mem::size_of::<[u8; u64::MAX as usize]>()); 12 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13 14note: erroneous constant encountered 15 --> $DIR/issue-55878.rs:7:26 16 | 17LL | println!("Size: {}", std::mem::size_of::<[u8; u64::MAX as usize]>()); 18 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 19 | 20 = note: this note originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) 21 22note: erroneous constant encountered 23 --> $DIR/issue-55878.rs:7:26 24 | 25LL | println!("Size: {}", std::mem::size_of::<[u8; u64::MAX as usize]>()); 26 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 27 | 28 = note: this note originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) 29 30error: aborting due to previous error 31 32For more information about this error, try `rustc --explain E0080`.