]> git.proxmox.com Git - rustc.git/blame - src/test/ui/specialization/specialization-out-of-order.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / specialization / specialization-out-of-order.rs
CommitLineData
b7449926
XL
1// run-pass
2
54a0048b 3// Test that you can list the more specific impl before the more general one.
d9579d0f 4
f035d41b 5#![feature(specialization)] //~ WARN the feature `specialization` is incomplete
54a0048b
SL
6
7trait Foo {
8 type Out;
9}
10
11impl Foo for bool {
12 type Out = ();
13}
14
15impl<T> Foo for T {
16 default type Out = bool;
223e47cc
LB
17}
18
19fn main() {}