Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (12 sloc) 285 Bytes
// 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()));
fn main() {}
You can’t perform that action at this time.