blob: e2b110db6367f2c14ab8711640a1b6846be55075 [file] [log] [blame]
#![feature(specialization)]
trait Specializable { type Output; }
impl<T> Specializable for T {
default type Output = u16;
}
fn main() {
unsafe {
std::mem::transmute::<u16, <() as Specializable>::Output>(0);
}
}