Check the correct trait when checking ConstParamTy impls

This commit is contained in:
Maybe Waffle 2023-02-23 11:54:09 +00:00
parent c45c4f2cb1
commit 1c544108b1

View File

@ -107,7 +107,7 @@ pub fn type_allowed_to_implement_const_param_ty<'tcx>(
adt,
substs,
parent_cause,
hir::LangItem::Copy,
hir::LangItem::ConstParamTy,
)
.map_err(ConstParamTyImplementationError::InfrigingFields)?;