2020-05-03 17:14:33 +02:00
|
|
|
// compile-flags: -Zunleash-the-miri-inside-of-you
|
2020-04-28 09:30:11 +02:00
|
|
|
#![feature(box_syntax)]
|
2020-04-18 11:16:07 +02:00
|
|
|
|
|
|
|
use std::mem::ManuallyDrop;
|
|
|
|
|
|
|
|
fn main() {}
|
|
|
|
|
2020-05-03 14:23:08 +02:00
|
|
|
static TEST_BAD: &mut i32 = {
|
2020-04-18 11:16:07 +02:00
|
|
|
&mut *(box 0)
|
2020-04-29 09:53:22 +02:00
|
|
|
//~^ ERROR could not evaluate static initializer
|
2021-09-16 23:04:02 +01:00
|
|
|
//~| NOTE calling non-const function `alloc::alloc::exchange_malloc`
|
2020-04-18 11:16:07 +02:00
|
|
|
};
|