]> git.lizzy.rs Git - rust.git/blob - src/test/ui/specialization/specialization-out-of-order.rs
94e764f76366ee86bcd7c899f60122643682c067
[rust.git] / src / test / ui / specialization / specialization-out-of-order.rs
1 // run-pass
2
3 // Test that you can list the more specific impl before the more general one.
4
5 #![feature(specialization)]
6
7 trait Foo {
8     type Out;
9 }
10
11 impl Foo for bool {
12     type Out = ();
13 }
14
15 impl<T> Foo for T {
16     default type Out = bool;
17 }
18
19 fn main() {}