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 note: inside `std::mem::size_of::<[u8; SIZE]>`
5 --> $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 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12 note: erroneous constant used
13 --> $DIR/issue-55878.rs:7:26
15 LL | println!("Size: {}", std::mem::size_of::<[u8; u64::MAX as usize]>());
16 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18 = 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)
20 note: erroneous constant used
21 --> $DIR/issue-55878.rs:7:26
23 LL | println!("Size: {}", std::mem::size_of::<[u8; u64::MAX as usize]>());
24 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
26 = 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)
28 note: erroneous constant used
29 --> $DIR/issue-55878.rs:7:26
31 LL | println!("Size: {}", std::mem::size_of::<[u8; u64::MAX as usize]>());
32 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
34 = 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)
36 error: aborting due to previous error
38 For more information about this error, try `rustc --explain E0080`.