]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-eval/heap/alloc_intrinsic_untyped.stderr
Rollup merge of #85766 - workingjubilee:file-options, r=yaahc
[rust.git] / src / test / ui / consts / const-eval / heap / alloc_intrinsic_untyped.stderr
1 error: untyped pointers are not allowed in constant
2   --> $DIR/alloc_intrinsic_untyped.rs:6:1
3    |
4 LL | const BAR: *mut i32 = unsafe { intrinsics::const_allocate(4, 4) as *mut i32};
5    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6
7 error: aborting due to previous error
8