Files
rust/src/test/ui/consts/miri_unleashed/box.rs

14 lines
301 B
Rust
Raw Normal View History

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)]
#![allow(const_err)]
use std::mem::ManuallyDrop;
fn main() {}
2020-05-03 14:23:08 +02:00
static TEST_BAD: &mut i32 = {
&mut *(box 0)
2020-04-29 09:53:22 +02:00
//~^ ERROR could not evaluate static initializer
//~| NOTE heap allocations
};