check Projection supertrait bounds when confirming dyn candidate
This commit is contained in:
parent
285fa7ecd0
commit
f14a5fd712
3 changed files with 53 additions and 1 deletions
|
@ -468,7 +468,9 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
|
|||
.predicates
|
||||
.into_iter()
|
||||
{
|
||||
if let ty::PredicateKind::Trait(..) = super_trait.kind().skip_binder() {
|
||||
if let ty::PredicateKind::Trait(..) | ty::PredicateKind::Projection(..) =
|
||||
super_trait.kind().skip_binder()
|
||||
{
|
||||
let normalized_super_trait = normalize_with_depth_to(
|
||||
self,
|
||||
obligation.param_env,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue