2
Note user-facing types of coercion failure by compiler-errors · Pull Request #11...
source link: https://github.com/rust-lang/rust/pull/111451
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Conversation
When coercing, for example, Box<A>
into Box<dyn B>
, make sure that any failure notes mention those specific types, rather than mentioning inner types, like "the cast from A
to dyn B
".
I expect end-users are often confused when we skip layers of types and only mention the "innermost" part of a coercion, especially when other notes point at HIR, e.g. #111406.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK