Skip to content

duplicate definition should report location of the definition #2391

Closed
@erickt

Description

@erickt

I'm running into this error:

./request.rs:1:7: 1:29 error: duplicate definition of type request
./request.rs:1 import mre::request::request;
                      ^~~~~~~~~~~~~~~~~~~~~~

even though I only import mre::request::request once in that file. Perhaps I'm running into a compiler bug, or maybe I just don't quite understand the import rules. So, it would be helpful if the duplicate definition error also reported where rust first found the definition.

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

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions