Skip to content

Improve iface error message when types differ in boxity #2273

Closed
@catamorphism

Description

@catamorphism

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 @ on crate_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 of ast_conv for @crate_ctxt.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-type-systemArea: Type systemC-enhancementCategory: An issue proposing an enhancement or a PR with one.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions