1 //@normalize-stderr-test: "\+0x[48]" -> "+HALF_PTR"
4 // We use packed structs to get around alignment restrictions
14 let mut d = Data { pad: 0, ptr: &G };
16 // Get a pointer to the beginning of the Data struct (one u8 byte, then the pointer bytes).
17 let d_alias = &mut d as *mut _ as *mut *const u8;
19 let _x = d_alias.read_unaligned(); //~ERROR: unable to copy parts of a pointer