]> git.proxmox.com Git - rustc.git/blame - src/test/ui/consts/std/alloc.64bit.stderr
New upstream version 1.64.0+dfsg1
[rustc.git] / src / test / ui / consts / std / alloc.64bit.stderr
CommitLineData
48663c56 1error[E0080]: it is undefined behavior to use this value
04454e1e 2 --> $DIR/alloc.rs:9:1
48663c56 3 |
04454e1e 4LL | const LAYOUT_INVALID_ZERO: Layout = unsafe { Layout::from_size_align_unchecked(0x1000, 0x00) };
064997fb 5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value at .align.0.<enum-tag>: encountered 0x0000000000000000, but expected a valid enum tag
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 11
04454e1e
FG
12error[E0080]: it is undefined behavior to use this value
13 --> $DIR/alloc.rs:13:1
14 |
15LL | const LAYOUT_INVALID_THREE: Layout = unsafe { Layout::from_size_align_unchecked(9, 3) };
064997fb 16 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value at .align.0.<enum-tag>: encountered 0x0000000000000003, but expected a valid enum tag
04454e1e
FG
17 |
18 = 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.
19 = note: the raw bytes of the constant (size: 16, align: 8) {
20 09 00 00 00 00 00 00 00 03 00 00 00 00 00 00 00 │ ................
21 }
22
23error: aborting due to 2 previous errors
48663c56
XL
24
25For more information about this error, try `rustc --explain E0080`.