Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.
#![feature(core_intrinsics)]
#![feature(const_heap)]
use std::intrinsics;
const FOO: i32 = foo(); //~ error: evaluation of constant value failed
const fn foo() -> i32 {
unsafe {
let _ = intrinsics::const_allocate(4, 3) as *mut i32; //~ inside `foo`
}
1
fn main() {}