]>
Commit | Line | Data |
---|---|---|
ba9703b0 | 1 | // compile-flags: -Zunleash-the-miri-inside-of-you |
f9f354fc | 2 | #![feature(box_syntax)] |
ba9703b0 XL |
3 | |
4 | use std::mem::ManuallyDrop; | |
5 | ||
6 | fn main() {} | |
7 | ||
8 | static TEST_BAD: &mut i32 = { | |
9 | &mut *(box 0) | |
f9f354fc | 10 | //~^ ERROR could not evaluate static initializer |
c295e0f8 | 11 | //~| NOTE calling non-const function `alloc::alloc::exchange_malloc` |
ba9703b0 | 12 | }; |