blob: c54115de2045dde41c05be8384babda5972c1141 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
//@ stderr-per-bitwidth
// compile-test
#![feature(core_intrinsics)]
#![feature(const_heap)]
use std::intrinsics;
const BAR: &i32 = unsafe { //~ ERROR: uninitialized memory
// Make the pointer immutable to avoid errors related to mutable pointers in constants.
&*(intrinsics::const_make_global(intrinsics::const_allocate(4, 4)) as *const i32)
};
fn main() {}
|