2020-04-29 09:53:22 +02:00
|
|
|
// compile-flags: -Zunleash-the-miri-inside-of-you -Zdeduplicate-diagnostics
|
2020-04-28 09:30:11 +02:00
|
|
|
#![feature(box_syntax)]
|
2020-04-19 12:32:21 +02:00
|
|
|
#![allow(const_err)]
|
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
|
2020-04-18 11:16:07 +02:00
|
|
|
//~| NOTE heap allocations
|
|
|
|
|
};
|