summaryrefslogtreecommitdiffstats
path: root/src/test/ui/specialization/specialization-supertraits.rs
blob: fb85d8019218a7b551f15661cfc788538584ab01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 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() {}