about summary refs log tree commit diff
path: root/src/test/ui/repeat-expr
diff options
context:
space:
mode:
authorOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2022-04-28 09:40:42 +0000
committerOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2022-04-28 09:40:42 +0000
commit018f9347fcc265b21e5269254c50b73ac8c2a3de (patch)
treece25046c7a9d2407a18f6073d8f25aa9c8beb30a /src/test/ui/repeat-expr
parentbc14b6bea6a410f11a7ea5db84ad753673b78150 (diff)
Update the diagnostic message to match the new span
Diffstat (limited to 'src/test/ui/repeat-expr')
-rw-r--r--src/test/ui/repeat-expr/repeat-to-run-dtor-twice.stderr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/repeat-expr/repeat-to-run-dtor-twice.stderr b/src/test/ui/repeat-expr/repeat-to-run-dtor-twice.stderr
index fd64ce8bcea..36b93616375 100644
--- a/src/test/ui/repeat-expr/repeat-to-run-dtor-twice.stderr
+++ b/src/test/ui/repeat-expr/repeat-to-run-dtor-twice.stderr
@@ -4,7 +4,7 @@ error[E0277]: the trait bound `Foo: Copy` is not satisfied
 LL |     let _ = [ a; 5 ];
    |               ^ the trait `Copy` is not implemented for `Foo`
    |
-   = note: the `Copy` trait is required because the repeated element will be copied
+   = note: the `Copy` trait is required because this value will be copied for each element of the array
 help: consider annotating `Foo` with `#[derive(Copy)]`
    |
 LL | #[derive(Copy)]