summary refs log tree commit diff
path: root/src/test/ui/consts/std/alloc.stderr
blob: 74a8f3daf6aaa94ffd376a0bf16e2ffb4c7328e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
error[E0080]: it is undefined behavior to use this value
  --> $DIR/alloc.rs:7:1
   |
LL | const LAYOUT_INVALID: Layout = unsafe { Layout::from_size_align_unchecked(0x1000, 0x00) };
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type validation failed: encountered 0 at .align_, but expected something greater or equal to 1
   |
   = note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rust compiler repository if you believe it should not be considered undefined behavior

error: aborting due to previous error

For more information about this error, try `rustc --explain E0080`.