1 #![feature(extern_types)]
2 #![feature(core_intrinsics)]
3 #![feature(const_size_of_val, const_align_of_val)]
5 use std::intrinsics::{min_align_of_val, size_of_val};
11 const _SIZE: usize = unsafe { size_of_val(&4 as *const i32 as *const Opaque) }; //~ ERROR
12 //~| WARN this was previously accepted by the compiler but is being phased out
13 const _ALIGN: usize = unsafe { min_align_of_val(&4 as *const i32 as *const Opaque) }; //~ ERROR
14 //~| WARN this was previously accepted by the compiler but is being phased out