Update the diagnostic message to match the new span

This commit is contained in:
Oli Scherer 2022-04-28 09:40:42 +00:00
parent bc14b6bea6
commit 018f9347fc
10 changed files with 13 additions and 13 deletions

View file

@ -2227,7 +2227,7 @@ impl<'a, 'tcx> InferCtxtExt<'tcx> for InferCtxt<'a, 'tcx> {
}
ObligationCauseCode::RepeatElementCopy { is_const_fn } => {
err.note(
"the `Copy` trait is required because the repeated element will be copied",
"the `Copy` trait is required because this value will be copied for each element of the array",
);
if is_const_fn {