Support constraining opaque types while trait upcasting with binders
This commit is contained in:
parent
7f292f41a0
commit
4387eea7f7
3 changed files with 3 additions and 11 deletions
|
@ -2594,7 +2594,7 @@ impl<'tcx> SelectionContext<'_, 'tcx> {
|
|||
self.infcx
|
||||
.at(&obligation.cause, obligation.param_env)
|
||||
.eq(
|
||||
DefineOpaqueTypes::No,
|
||||
DefineOpaqueTypes::Yes,
|
||||
upcast_principal.map_bound(|trait_ref| {
|
||||
ty::ExistentialTraitRef::erase_self_ty(tcx, trait_ref)
|
||||
}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue