summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/miri_unleashed/box.rs
blob: c2a260aa13c298900c3b6e367dc897313a93f6f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// compile-flags: -Zunleash-the-miri-inside-of-you
#![feature(box_syntax)]

use std::mem::ManuallyDrop;

fn main() {}

static TEST_BAD: &mut i32 = {
    &mut *(box 0)
    //~^ ERROR could not evaluate static initializer
    //~| NOTE calling non-const function `alloc::alloc::exchange_malloc`
};