#![feature(specialization)] trait Specializable { type Output; } impl Specializable for T { default type Output = u16; } fn main() { unsafe { std::mem::transmute::::Output>(0); } }