summaryrefslogtreecommitdiffstats
path: root/tests/ui/dst
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/dst')
-rw-r--r--tests/ui/dst/dst-bad-coerce1.stderr10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/dst/dst-bad-coerce1.stderr b/tests/ui/dst/dst-bad-coerce1.stderr
index 2c75518c2..455d15e93 100644
--- a/tests/ui/dst/dst-bad-coerce1.stderr
+++ b/tests/ui/dst/dst-bad-coerce1.stderr
@@ -15,6 +15,11 @@ error[E0277]: the trait bound `Foo: Bar` is not satisfied
LL | let f3: &Fat<dyn Bar> = f2;
| ^^ the trait `Bar` is not implemented for `Foo`
|
+help: this trait has no implementations, consider adding one
+ --> $DIR/dst-bad-coerce1.rs:10:1
+ |
+LL | trait Bar { fn bar(&self) {} }
+ | ^^^^^^^^^
= note: required for the cast from `&Fat<Foo>` to `&Fat<dyn Bar>`
error[E0308]: mismatched types
@@ -34,6 +39,11 @@ error[E0277]: the trait bound `Foo: Bar` is not satisfied
LL | let f3: &(dyn Bar,) = f2;
| ^^ the trait `Bar` is not implemented for `Foo`
|
+help: this trait has no implementations, consider adding one
+ --> $DIR/dst-bad-coerce1.rs:10:1
+ |
+LL | trait Bar { fn bar(&self) {} }
+ | ^^^^^^^^^
= note: required for the cast from `&(Foo,)` to `&(dyn Bar,)`
error: aborting due to 4 previous errors