summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/miri_unleashed/box.rs
blob: 39cddda2b80406c3231110b4edd0e586f4a80f7f (plain)
1
2
3
4
5
6
7
8
9
10
11
// 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`
};