summary refs log tree commit diff
path: root/src/test/ui/consts/miri_unleashed/box.rs
blob: 1f0b7f7e78a69dc17766139d0b3dee7df4ccc99d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// compile-flags: -Zunleash-the-miri-inside-of-you
#![feature(box_syntax)]
#![allow(const_err)]

use std::mem::ManuallyDrop;

fn main() {}

static TEST_BAD: &mut i32 = {
    &mut *(box 0)
    //~^ ERROR could not evaluate static initializer
    //~| NOTE heap allocations
};