blob: 82e467ad98d324c8bc51970e4403a3939fe4b2bc [file] [edit]
trait Trait {
type Ty;
const CT: ();
fn fn_(&self);
}
impl<T> Trait for T {
default type Ty = (); //~ ERROR specialization is experimental
default const CT: () = (); //~ ERROR specialization is experimental
default fn fn_(&self) {} //~ ERROR specialization is experimental
}
trait OtherTrait {
fn fn_();
}
default impl<T> OtherTrait for T { //~ ERROR specialization is experimental
fn fn_() {}
}
fn main() {}