You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// passes with old impl, ambiguous with the new one.#![feature(type_alias_impl_trait)]traitTrait{typeAssoc;}impl<T:Copy>TraitforT{typeAssoc = T;}fnneeds_trait<T:Trait<Assoc = U>,U>(){}typeTait = implCopy;fndefine() -> Tait{}fncheck(){needs_trait::<Tait,Tait>();//[new]~^ ERROR type annotations needed//[new]~| NOTE cannot satisfy `<Tait as Trait>::Assoc == Tait`}fnmain(){}
there are two candidates to prove <Tait as Trait>::Assoc = Tait:
impl candidate
ambig self infer type from trying to define the opaque
because it's a projection goal, we try to constrain the inference variable of the term, so we're unable to make progress and end up with ambiguity.
The text was updated successfully, but these errors were encountered:
there are two candidates to prove
<Tait as Trait>::Assoc = Tait
:because it's a projection goal, we try to constrain the inference variable of the term, so we're unable to make progress and end up with ambiguity.
The text was updated successfully, but these errors were encountered: