Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
296 B
Rust
Raw Normal View History

// compile-flags: -Zunleash-the-miri-inside-of-you
2020-04-28 09:30:11 +02:00
#![feature(box_syntax)]
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
2021-09-16 23:04:02 +01:00
//~| NOTE calling non-const function `alloc::alloc::exchange_malloc`
};