2021-10-05 03:55:57 -05:00
|
|
|
#![feature(const_mut_refs)]
|
2018-07-02 12:00:07 -05:00
|
|
|
|
2021-10-05 03:55:57 -05:00
|
|
|
const REG_ADDR: *mut u8 = 0x5f3759df as *mut u8;
|
2018-07-02 12:00:07 -05:00
|
|
|
|
|
|
|
const VALUE: u8 = unsafe { *REG_ADDR };
|
2021-07-14 02:57:54 -05:00
|
|
|
//~^ ERROR evaluation of constant value failed
|
2018-07-02 12:00:07 -05:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
}
|