blob: b10b2e49616fb5f420b8b6e9fb2948a3c8d4a833 [file] [log] [blame]
// build-pass (FIXME(62277): could be check-pass?)
// compiler-flags: -g
pub struct Dst {
pub a: (),
pub b: (),
pub data: [u8],
}
pub unsafe fn borrow(bytes: &[u8]) -> &Dst {
let dst: &Dst = std::mem::transmute((bytes.as_ptr(), bytes.len()));
dst
}
fn main() {}