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::*; }
}
I'm not sure if this falls into the realm of something needing an RFC or not, but I expected this to work:
but it gives
error: expected identifier, found keywordsuper``.If I do it in an import list I get a different error:
error: unresolved importsuper. There is nosuperin???``(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: