-
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-bugCategory: This is a bug.Category: This is a bug.T-langRelevant to the language teamRelevant to the language team
Description
I'm not sure if this falls into the realm of something needing an RFC or not, but I expected this to work:
mod a {
use super as foo;
}
but it gives error: expected identifier, found keyword
super``.
If I do it in an import list I get a different error:
mod a {
use super::{self as foo};
}
error: unresolved import
super. There is no
superin
???``
(I suppose this also applies to self
, but I can't think of a reason to do that.)
Edit: This seems to work as a substitute:
mod a {
mod foo { pub use super::super::*; }
}
tv42, abau, xandkar, rodrigocfd and asmello
Metadata
Metadata
Assignees
Labels
A-resolveArea: Name/path resolution done by `rustc_resolve` specificallyArea: Name/path resolution done by `rustc_resolve` specificallyC-bugCategory: This is a bug.Category: This is a bug.T-langRelevant to the language teamRelevant to the language team