Today a coworker and I made use of the fact that these two bits of #RustLang cod...
Jordan @jrose@belkadan.com
Today a coworker and I made use of the fact that these two bits of #RustLang code have different behavior:
trait Derived: Base where Self::BaseAssoc: Clone {}
trait Derived: Base<BaseAssoc: Clone> {}
The difference is at the use site: with the second, T: Derived is enough to use the trait, but the first forces you to write T::BaseAssoc: Clone as well (in some form).
This kind of subtle difference does not make me happy. I suspect there are compatibility shenanigans going on though (if I remember correctly the second syntax was added later).