-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
Labels
A-resolveArea: Name/path resolution done by `rustc_resolve` specificallyArea: Name/path resolution done by `rustc_resolve` specificallyC-feature-requestCategory: A feature request, i.e: not implemented / a PR.Category: A feature request, i.e: not implemented / a PR.T-langRelevant to the language teamRelevant to the language team
Description
Obviously use super::self
would be a bit redundant, but what about if you're importing lots of items from super
?
We can already do something like:
use foo::{self, a, b, c};
So why not something like this?
use super::{self, a, b, c};
For reference, the specific error message on nightly is:
error[E0432]: unresolved import `super`
--> ...
|
1 | use super::{self, a, b, c};
| ^^^^ no `super` in the root
MaxNanasy
Metadata
Metadata
Assignees
Labels
A-resolveArea: Name/path resolution done by `rustc_resolve` specificallyArea: Name/path resolution done by `rustc_resolve` specificallyC-feature-requestCategory: A feature request, i.e: not implemented / a PR.Category: A feature request, i.e: not implemented / a PR.T-langRelevant to the language teamRelevant to the language team