]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/miri_unleashed/box.rs
Rollup merge of #98640 - cuviper:stable-rust-analyzer, r=Mark-Simulacrum
[rust.git] / src / test / ui / consts / miri_unleashed / box.rs
1 // compile-flags: -Zunleash-the-miri-inside-of-you
2 #![feature(box_syntax)]
3 #![allow(const_err)]
4
5 use std::mem::ManuallyDrop;
6
7 fn main() {}
8
9 static TEST_BAD: &mut i32 = {
10     &mut *(box 0)
11     //~^ ERROR could not evaluate static initializer
12     //~| NOTE calling non-const function `alloc::alloc::exchange_malloc`
13 };