blob: cb4cfef4bdd10eb273cc9bbbd343db52e010b18c [file] [log] [blame] [edit]
//@ check-pass
#![feature(specialization)] //~ WARN the feature `specialization` is incomplete
// Test that you can specialize via an explicit trait hierarchy
// FIXME: this doesn't work yet...
trait Parent {}
trait Child: Parent {}
trait Foo {}
impl<T: Parent> Foo for T {}
impl<T: Child> Foo for T {}
fn main() {}