Skip to content

Can't 'use' from an 'extern crate' defined in a function #23314

@brson

Description

@brson

I never realized this before:

fn main() {
    extern crate core;

    // Can't write this because 'self' refers to the outer module.
    use self::core::str;
}

Seems pretty strange.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions