summary refs log tree commit diff
path: root/src/test/ui/error-codes/E0396-fixed.rs
blob: 76dd857ea56163620b81bb0d77dad7f88dff0ab6 (plain)
1
2
3
4
5
6
7
8
9
10
#![feature(const_raw_ptr_deref)]

const REG_ADDR: *const u8 = 0x5f3759df as *const u8;

const VALUE: u8 = unsafe { *REG_ADDR };
//~^ ERROR any use of this value will cause an error
//~| WARN this was previously accepted by the compiler but is being phased out

fn main() {
}