2019-07-26 16:54:25 -05:00
|
|
|
// run-pass
|
|
|
|
|
2016-07-01 10:36:54 -05:00
|
|
|
#![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);
|
|
|
|
}
|
|
|
|
}
|