blob: 4010b476990dcc4bf7355fa50b36118e67bf208c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#![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() {}
|