check Projection supertrait bounds when confirming dyn candidate
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user