]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0396-fixed.rs
Rollup merge of #82259 - osa1:issue82156, r=petrochenkov
[rust.git] / src / test / ui / error-codes / E0396-fixed.rs
1 #![feature(const_raw_ptr_deref)]
2
3 const REG_ADDR: *const u8 = 0x5f3759df as *const u8;
4
5 const VALUE: u8 = unsafe { *REG_ADDR };
6 //~^ ERROR any use of this value will cause an error
7 //~| WARN this was previously accepted by the compiler but is being phased out
8
9 fn main() {
10 }