Improve iface error message when types differ in boxity #2273
Labels
A-type-system
Area: Type system
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
Milestone
I just got the error
failed to find an implementation of interface middle::typeck::ast_conv for middle::typeck::crate_ctxt
. It took me a second to figure out that my mistake was leaving off the@
oncrate_ctxt
. It would be nice if, in this case, the typechecker gave a hint like "did you mean@crate_ctxt
?", in the case where there is an implementation ofast_conv
for@crate_ctxt
.The text was updated successfully, but these errors were encountered: