summaryrefslogtreecommitdiff
path: root/tests/ui/self/arbitrary-self-types-not-object-safe.object_safe_for_dispatch.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/self/arbitrary-self-types-not-object-safe.object_safe_for_dispatch.stderr')
-rw-r--r--tests/ui/self/arbitrary-self-types-not-object-safe.object_safe_for_dispatch.stderr3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/ui/self/arbitrary-self-types-not-object-safe.object_safe_for_dispatch.stderr b/tests/ui/self/arbitrary-self-types-not-object-safe.object_safe_for_dispatch.stderr
index b494b448e2e..593f705353a 100644
--- a/tests/ui/self/arbitrary-self-types-not-object-safe.object_safe_for_dispatch.stderr
+++ b/tests/ui/self/arbitrary-self-types-not-object-safe.object_safe_for_dispatch.stderr
@@ -14,8 +14,7 @@ LL | trait Foo {
| --- this trait cannot be made into an object...
LL | fn foo(self: &Rc<Self>) -> usize;
| ^^^^^^^^^ ...because method `foo`'s `self` parameter cannot be dispatched on
- = note: required for `Rc<usize>` to implement `CoerceUnsized<Rc<dyn Foo>>`
- = note: required by cast to type `Rc<dyn Foo>`
+ = note: required for the cast from `Rc<usize>` to `Rc<dyn Foo>`
error: aborting due to previous error