Skip to content

Commit 1c54410

Browse files
committed
Check the correct trait when checking ConstParamTy impls
1 parent c45c4f2 commit 1c54410

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
@@ -107,7 +107,7 @@ pub fn type_allowed_to_implement_const_param_ty<'tcx>(
107107
adt,
108108
substs,
109109
parent_cause,
110-
hir::LangItem::Copy,
110+
hir::LangItem::ConstParamTy,
111111
)
112112
.map_err(ConstParamTyImplementationError::InfrigingFields)?;
113113

0 commit comments

Comments
 (0)