Open lcnr opened 11 months ago
NOTE TO SELF: shadowing impl candidates if there's a trait candidate in teh param env causes issues with inlining/adding additional bounds to the environment
test from #83
pub fn choice<I>(iter: I) -> Option<I::Item>
where
I: IntoIterator,
I::IntoIter: Iterator,
{
todo!()
}
https://rust.godbolt.org/z/8fzsP4MbE
normalizing
<T as Trait>::TraitAssoc
in the elaborated environment[T: Trait, T: Super, <T as Super>::SuperAssoc = <T as Trait>::TraitAssoc]
has a single impl candidate, which uses the environment to normalize<T as Trait>::TraitAssoc
to itself :3