1 //! Transmutations involving references are not yet supported.
4 #![feature(transmutability)]
5 #![allow(dead_code, incomplete_features, non_camel_case_types)]
8 use std::mem::{Assume, BikeshedIntrinsicFrom};
11 pub fn is_maybe_transmutable<Src, Dst>()
13 Dst: BikeshedIntrinsicFrom<Src, Context, {
24 fn not_yet_implemented() {
25 #[repr(C)] struct Unit;
26 assert::is_maybe_transmutable::<&'static Unit, &'static Unit>(); //~ ERROR cannot be safely transmuted