Skip to content

Global paths in use directives can begin with super or self #32225

Closed
@jseyfried

Description

@jseyfried

For example,

mod foo {
    fn f() {}

    fn g() {
        use ::super::foo::f; // This is currently allowed,
        ::super::foo::f(); // but this is not.
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-langRelevant to the language team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions