14 lines
307 B
Rust
14 lines
307 B
Rust
#![feature(core_intrinsics)]
|
|
#![feature(const_heap)]
|
|
|
|
use std::intrinsics;
|
|
|
|
const _X: () = unsafe {
|
|
let ptr = intrinsics::const_allocate(4, 4);
|
|
intrinsics::const_deallocate(ptr, 4, 4);
|
|
intrinsics::const_deallocate(ptr, 4, 4);
|
|
//~^ error: evaluation of constant value failed
|
|
};
|
|
|
|
fn main() {}
|