Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
matklad opened this issue May 14, 2016 · 2 comments
Closed

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

matklad opened this issue May 14, 2016 · 2 comments

Comments

@matklad
Copy link
Member

matklad commented May 14, 2016

This compiles, though it probably should not:

use ::self::foo::bar;

mod foo {
    pub fn bar() {}
}

fn main() {}
@petrochenkov
Copy link
Contributor

This was fixed in #32403, however it's temporarily reported as a warning for backward compatibility.

@matklad
Copy link
Member Author

matklad commented May 14, 2016

Ah yes, I should have checked this on nightly, thanks!

@matklad matklad closed this as completed May 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants