Skip to content

Associated functions on reexported private types cause linker errors #10051

Closed
@SimonSapin

Description

@SimonSapin

This is the same issue as #9790, but with associated functions (aka "static methods".)

Test case:

lib.rs:

pub use internal::S;
mod internal {
    pub struct S;
    impl S {
        pub fn test() {}
    }
}

main.rs:

extern mod lib;
fn main() {
    lib::S::test()
}

CC: @alexcrichton

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