]> git.lizzy.rs Git - rust.git/blob - tests/ui/limits/issue-55878.stderr
Rollup merge of #106570 - Xaeroxe:div-duration-tests, r=JohnTitor
[rust.git] / tests / 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 note: inside `std::mem::size_of::<[u8; SIZE]>`
5   --> $SRC_DIR/core/src/mem/mod.rs:LL:COL
6 note: inside `main`
7   --> $DIR/issue-55878.rs:7:26
8    |
9 LL |     println!("Size: {}", std::mem::size_of::<[u8; u64::MAX as usize]>());
10    |                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11
12 note: 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    |                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17    |
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)
19
20 note: erroneous constant used
21   --> $DIR/issue-55878.rs:7:26
22    |
23 LL |     println!("Size: {}", std::mem::size_of::<[u8; u64::MAX as usize]>());
24    |                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
25    |
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)
27
28 note: erroneous constant used
29   --> $DIR/issue-55878.rs:7:26
30    |
31 LL |     println!("Size: {}", std::mem::size_of::<[u8; u64::MAX as usize]>());
32    |                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
33    |
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)
35
36 error: aborting due to previous error
37
38 For more information about this error, try `rustc --explain E0080`.