about summary refs log tree commit diff
diff options
context:
space:
mode:
authorohno418 <yutaro.ono.418@gmail.com>2022-04-05 17:25:38 +0900
committerohno418 <yutaro.ono.418@gmail.com>2022-04-05 17:25:38 +0900
commitb831b60cefabafa78ea9da173c2ce9c0321a29c7 (patch)
tree5a889f93b1f529498d0901e962a42b03d197a51d
parentde237823e01347a48819d34fe8e0cf130e3e54cb (diff)
downloadrust-b831b60cefabafa78ea9da173c2ce9c0321a29c7.tar.gz
rust-b831b60cefabafa78ea9da173c2ce9c0321a29c7.zip
Fix ui test for nll
-rw-r--r--src/test/ui/kindck/kindck-impl-type-params.nll.stderr4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/ui/kindck/kindck-impl-type-params.nll.stderr b/src/test/ui/kindck/kindck-impl-type-params.nll.stderr
index 7129bad8a97..84e02a24964 100644
--- a/src/test/ui/kindck/kindck-impl-type-params.nll.stderr
+++ b/src/test/ui/kindck/kindck-impl-type-params.nll.stderr
@@ -91,6 +91,10 @@ note: required because of the requirements on the impl of `Gettable<Foo>` for `S
 LL | impl<T: Send + Copy + 'static> Gettable<T> for S<T> {}
    |                                ^^^^^^^^^^^     ^^^^
    = note: required for the cast to the object type `dyn Gettable<Foo>`
+help: consider annotating `Foo` with `#[derive(Copy)]`
+   |
+LL |     #[derive(Copy)]
+   |
 
 error: aborting due to 6 previous errors