blob: e004f2cf4feb75a095369110235112c4de207e2c [file] [log] [blame] [edit]
// 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::TransmuteFrom;
pub fn is_transmutable<Src, Dst>()
where
Dst: TransmuteFrom<Src>
{}
}
fn should_gracefully_handle_unknown_dst() {
struct Src;
assert::is_transmutable::<Src, Dst>(); //~ ERROR cannot find type
}