summaryrefslogtreecommitdiffstats
path: root/tests/ui/error-codes/E0396-fixed.rs
blob: fe20da1a8ea87fa88b4a1e6eb872db31a5c97c03 (plain)
1
2
3
4
5
6
7
8
9
#![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() {
}