mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-28 17:14:03 +00:00
18 lines
320 B
Rust
18 lines
320 B
Rust
// run-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() {}
|