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
#![feature(type_alias_impl_trait)]traitMirror{typeAssoc;}impl<T>MirrorforT{typeAssoc = T;}typeTait<T> = implSized;// Can't actually put `-> Tait<<T as Mirror>::Assoc>` in the return type,// since the opaque type collector doesn't normalize either.fnx<T>() -> Tait<T>{let x:Tait<<TasMirror>::Assoc> = ();//~^ But this user type annotation does get normalized before it's// unified with `()`.()}fnmain(){}
We could, perhaps, structurally normalize the opaque params before checking that they're all placeholders...
The text was updated successfully, but these errors were encountered:
This code stops working with lazy-norm:
We could, perhaps, structurally normalize the opaque params before checking that they're all placeholders...
The text was updated successfully, but these errors were encountered: