1 // An unknown destination type should be gracefully handled.
4 #![feature(transmutability)]
5 #![allow(dead_code, incomplete_features, non_camel_case_types)]
8 use std::mem::BikeshedIntrinsicFrom;
11 pub fn is_transmutable<Src, Dst, Context>()
13 Dst: BikeshedIntrinsicFrom<Src, Context, false, false, false, false>
17 fn should_gracefully_handle_unknown_dst_field() {
19 #[repr(C)] struct Src;
20 #[repr(C)] struct Dst(Missing); //~ cannot find type
21 assert::is_transmutable::<Src, Dst, Context>();