2020-04-29 03:00:22 -05:00
|
|
|
// compile-flags: -Zunleash-the-miri-inside-of-you
|
|
|
|
|
|
|
|
use std::cell::UnsafeCell;
|
|
|
|
|
|
|
|
const MUTABLE_BEHIND_RAW: *mut i32 = &UnsafeCell::new(42) as *const _ as *mut _;
|
2023-05-17 05:30:14 -05:00
|
|
|
//~^ ERROR: unsupported untyped pointer in constant
|
2020-04-29 03:00:22 -05:00
|
|
|
|
|
|
|
fn main() {}
|