Skip to content

Mixed absolute-relative import is allowed in use delcaration #33636

Closed
@matklad

Description

@matklad

This compiles, though it probably should not:

use ::self::foo::bar;

mod foo {
    pub fn bar() {}
}

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