1 error[E0080]: values of the type `[u8; SIZE]` are too big for the current architecture
2 --> $SRC_DIR/core/src/mem/mod.rs:LL:COL
4 LL | intrinsics::size_of::<T>()
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ inside `std::mem::size_of::<[u8; SIZE]>` at $SRC_DIR/core/src/mem/mod.rs:LL:COL
7 ::: $DIR/issue-55878.rs:7:26
9 LL | println!("Size: {}", std::mem::size_of::<[u8; u64::MAX as usize]>());
10 | ---------------------------------------------- inside `main` at $DIR/issue-55878.rs:7:26
12 error: erroneous constant used
13 --> $DIR/issue-55878.rs:7:26
15 LL | println!("Size: {}", std::mem::size_of::<[u8; u64::MAX as usize]>());
16 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ referenced constant has errors
18 = note: `#[deny(const_err)]` on by default
19 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
20 = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
21 = note: this error 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)
23 error: aborting due to 2 previous errors
25 For more information about this error, try `rustc --explain E0080`.
26 Future incompatibility report: Future breakage diagnostic:
27 error: erroneous constant used
28 --> $DIR/issue-55878.rs:7:26
30 LL | println!("Size: {}", std::mem::size_of::<[u8; u64::MAX as usize]>());
31 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ referenced constant has errors
33 = note: `#[deny(const_err)]` on by default
34 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
35 = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
36 = note: this error 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)