Skip to content

Cross-crate unit structs are broken #7634

Closed
@emberian

Description

@emberian

a.rs:

pub struct Foo;

b.rs:

extern mod a;

fn main() {
    let foo = a::Foo;
}
b.rs:4:14: 4:20 error: unresolved name `a::Foo`.
b.rs:4     let foo = a::Foo;
                     ^~~~~~
error: aborting due to previous error

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-metadataArea: Crate metadataA-resolveArea: Name/path resolution done by `rustc_resolve` specifically

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions