1 // compile-flags: -Zunleash-the-miri-inside-of-you
2 #![feature(box_syntax)]
5 use std::mem::ManuallyDrop;
9 static TEST_BAD: &mut i32 = {
11 //~^ ERROR could not evaluate static initializer
12 //~| NOTE calling non-const function `alloc::alloc::exchange_malloc`