rust/tests/ui/error-codes/E0396-fixed.rs
2023-01-11 09:32:08 +00:00

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() {
}