about summary refs log tree commit diff
path: root/tests/ui/consts/const-eval/ptr_fragments_in_final.stderr
blob: 628bf2566e5928007102d33329b4db93b2b8fc83 (plain)
1
2
3
4
5
6
7
8
9
10
error: encountered partial pointer in final value of constant
  --> $DIR/ptr_fragments_in_final.rs:15:1
   |
LL | const MEMCPY_RET: MaybeUninit<*const i32> = unsafe {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: while pointers can be broken apart into individual bytes during const-evaluation, only complete pointers (with all their bytes in the right order) are supported in the final value

error: aborting due to 1 previous error