blob: 499334d983b1f1b38965c06be88b0cca8dac5279 [file] [log] [blame]
// 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);
}
}