Skip to content

Commit c85acb9

Browse files
committed
Use select_or_all_error
1 parent 39a5e93 commit c85acb9

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_trait_selection/src/traits

1 file changed

+1
-1
lines changed

compiler/rustc_trait_selection/src/traits/misc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ pub fn type_allowed_to_implement_const_param_ty<'tcx>(
156156
ty::ClauseKind::UnstableFeature(sym::unsized_const_params),
157157
));
158158

159-
if !ocx.select_where_possible().is_empty() {
159+
if !ocx.select_all_or_error().is_empty() {
160160
return Err(ConstParamTyImplementationError::UnsizedConstParamsFeatureRequired);
161161
}
162162
}

0 commit comments

Comments
 (0)