Skip to content

Recursive 'mod' import not detected by compiler #7574

Closed
@gavinb

Description

@gavinb

Attempting to import a module using mod with no body and supplying the same name as the current module (ie. a recursive mod) is not detected at compile time, and results in the compiler spinning its wheels.

Simple example:

// foo.rs
mod foo;
fn main() { .. }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions