Instantly share code, notes, and snippets.

Embed
What would you like to do?
// Parent crate //////////
trait ParentTrait {}
// impl supposedly allowed to be added due to `fundamental` rules
impl<T> ParentTrait for Vec<T> {}
trait Assoc {
type Out;
}
impl<T> Assoc for T where T: ParentTait {
type Out = ();
}
// Child crate //////////
impl<T> Foo for T where Vec<T>: Assoc
impl<T> Foo for T where Vec<T>: Assoc<Out = ()>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment