mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
9 lines
232 B
Rust
9 lines
232 B
Rust
// 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 _;
|
|
//~^ ERROR: untyped pointers are not allowed in constant
|
|
|
|
fn main() {}
|