]> git.proxmox.com Git - rustc.git/blame - src/test/ui/consts/std/alloc.64bit.stderr
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / consts / std / alloc.64bit.stderr
CommitLineData
48663c56 1error[E0080]: it is undefined behavior to use this value
cdc7bbd5 2 --> $DIR/alloc.rs:8:1
48663c56
XL
3 |
4LL | const LAYOUT_INVALID: Layout = unsafe { Layout::from_size_align_unchecked(0x1000, 0x00) };
136023e0 5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type validation failed at .align_: encountered 0, but expected something greater or equal to 1
48663c56 6 |
e1599b0c 7 = note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
cdc7bbd5
XL
8 = note: the raw bytes of the constant (size: 16, align: 8) {
9 00 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 │ ................
10 }
48663c56
XL
11
12error: aborting due to previous error
13
14For more information about this error, try `rustc --explain E0080`.