blob: cc81481e4fa4cdf4c90773386f6eba26bd0af641 [file] [log] [blame]
fn main() {
// make sure ZST locals cannot be accessed
let x = &() as *const () as *const i8;
let _val = unsafe { *x }; //~ ERROR: out-of-bounds
}