1 #![feature(specialization)] //~ WARN the feature `specialization` is incomplete
10 default type Assoc = bool;
13 // This impl inherits the `Assoc` definition from above and "locks it in", or finalizes it, making
14 // child impls unable to further specialize it. However, since the specialization graph didn't
15 // correctly track this, we would refuse to project `Assoc` from this impl, even though that should
16 // happen for items that are final.
19 fn foo<X: Trait<Assoc=bool>>() {}
22 foo::<()>(); // `<() as Trait>::Assoc` is normalized to `bool` correctly