Check the correct trait when checking ConstParamTy
impls
This commit is contained in:
parent
c45c4f2cb1
commit
1c544108b1
@ -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)?;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user