summaryrefslogtreecommitdiffstats
path: root/tests/ui/specialization/specialization-out-of-order.rs
blob: cb7563e2760c2d4cc1f0162571cc1ca8668f0bcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// run-pass

// Test that you can list the more specific impl before the more general one.

#![feature(specialization)] //~ WARN the feature `specialization` is incomplete

trait Foo {
    type Out;
}

impl Foo for bool {
    type Out = ();
}

impl<T> Foo for T {
    default type Out = bool;
}

fn main() {}