mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 10:18:25 +00:00
13 lines
246 B
Rust
13 lines
246 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 calling non-const function `Box::<i32>::new`
|
|
};
|
|
|
|
//~? WARN skipping const checks
|