rust/tests/ui/traits/trait-upcasting/multiple-occurrence-ambiguousity.stderr
Oli Scherer 9a20cf1697 Revert "Auto merge of #118133 - Urgau:stabilize_trait_upcasting, r=WaffleLapkin"
This reverts commit 6d2b84b3ed7848fd91b8d6151d4451b3103ed816, reversing
changes made to 73bc12199ea8c7651ed98b069c0dd6b0bb5fabcf.
2024-01-22 14:24:31 +00:00

15 lines
449 B
Plaintext

error[E0308]: mismatched types
--> $DIR/multiple-occurrence-ambiguousity.rs:20:26
|
LL | let t: &dyn Bar<_> = s;
| ----------- ^ expected trait `Bar`, found trait `Foo`
| |
| expected due to this
|
= note: expected reference `&dyn Bar<_>`
found reference `&dyn Foo`
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0308`.