blob: 988ebe03ccf6644e6e787f349e38d07b2c84d681 [file] [log] [blame]
// build-pass
// ignore-asmjs wasm2js does not support source maps yet
// compile-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() {}