mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
10 lines
181 B
Rust
10 lines
181 B
Rust
#![feature(const_mut_refs)]
|
|
|
|
const REG_ADDR: *mut u8 = 0x5f3759df as *mut u8;
|
|
|
|
const VALUE: u8 = unsafe { *REG_ADDR };
|
|
//~^ ERROR evaluation of constant value failed
|
|
|
|
fn main() {
|
|
}
|