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
{{ message }}
Repository navigation
not normalizing tait parameters before checking if it's a defining usage #49
#![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...
Activity
Auto merge of #145711 - lcnr:non-defining-uses-hir-typeck, r=BoxyUwU
Auto merge of #145711 - lcnr:non-defining-uses-hir-typeck, r=BoxyUwU