]> git.lizzy.rs Git - rust.git/blob - src/test/ui/limits/issue-55878.stderr
Rollup merge of #95534 - jyn514:std-mem-copy, r=joshtriplett
[rust.git] / src / test / ui / limits / issue-55878.stderr
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
3    |
4 LL |     intrinsics::size_of::<T>()
5    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ inside `std::mem::size_of::<[u8; SIZE]>` at $SRC_DIR/core/src/mem/mod.rs:LL:COL
6    |
7   ::: $DIR/issue-55878.rs:7:26
8    |
9 LL |     println!("Size: {}", std::mem::size_of::<[u8; u64::MAX as usize]>());
10    |                          ---------------------------------------------- inside `main` at $DIR/issue-55878.rs:7:26
11
12 error: erroneous constant used
13   --> $DIR/issue-55878.rs:7:26
14    |
15 LL |     println!("Size: {}", std::mem::size_of::<[u8; u64::MAX as usize]>());
16    |                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ referenced constant has errors
17    |
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` (in Nightly builds, run with -Z macro-backtrace for more info)
22
23 error: aborting due to 2 previous errors
24
25 For more information about this error, try `rustc --explain E0080`.