blob: a896c14e6370d702ed4aca1f82a650a853217e9f [file] [log] [blame] [edit]
//@ run-pass
#![feature(specialization)] //~ WARN the feature `specialization` is incomplete
trait Specializable { type Output; }
impl<T> Specializable for T {
default type Output = u16;
}
fn main() {
unsafe {
std::mem::transmute::<u16, <() as Specializable>::Output>(0);
}
}