blob: bcfbc1430a8cc5fa61f9e7213054baf32a7183a2 [file] [log] [blame]
// An unknown destination type should be gracefully handled.
#![crate_type = "lib"]
#![feature(transmutability)]
#![allow(dead_code, incomplete_features, non_camel_case_types)]
mod assert {
use std::mem::BikeshedIntrinsicFrom;
pub fn is_transmutable<Src, Dst>()
where
Dst: BikeshedIntrinsicFrom<Src>
{}
}
fn should_gracefully_handle_unknown_dst() {
struct Src;
assert::is_transmutable::<Src, Dst>(); //~ cannot find type
}