We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 158f7e8 commit a8cde85Copy full SHA for a8cde85
compiler/rustc_trait_selection/src/traits/misc.rs
@@ -154,7 +154,11 @@ pub fn type_allowed_to_implement_const_param_ty<'tcx>(
154
parent_cause.clone(),
155
param_env,
156
ty::ClauseKind::UnstableFeature(sym::unsized_const_params),
157
- ))
+ ));
158
+
159
+ if !ocx.select_where_possible().is_empty() {
160
+ return Err(ConstParamTyImplementationError::UnsizedConstParamsFeatureRequired);
161
+ }
162
}
163
164
ocx.register_bound(
0 commit comments