blob: 075efe494123d84bc2694b4edc14dd87d05ac890 (
plain)
1
2
3
4
5
6
7
8
|
//@error-in-other-file: pointer to 4 bytes starting at offset 0 is out-of-bounds
fn main() {
unsafe {
let ptr = Box::into_raw(Box::new(0u16));
drop(Box::from_raw(ptr as *mut u32));
}
}
|