mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 18:23:49 +00:00
12 lines
265 B
Rust
12 lines
265 B
Rust
//@ compile-flags: -Zunleash-the-miri-inside-of-you
|
|
|
|
use std::mem::ManuallyDrop;
|
|
|
|
fn main() {}
|
|
|
|
static TEST_BAD: &mut i32 = {
|
|
&mut *(Box::new(0))
|
|
//~^ ERROR could not evaluate static initializer
|
|
//~| NOTE calling non-const function `Box::<i32>::new`
|
|
};
|