Update the diagnostic message to match the new span
This commit is contained in:
parent
bc14b6bea6
commit
018f9347fc
10 changed files with 13 additions and 13 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue