blob: 2adb995cf2f300e6564b1a1a1b85b6f8cefcab36 [file] [edit]
mod foo {
pub use self as this;
//~^ ERROR `self` is only public within the crate, and cannot be re-exported outside
pub mod bar {
pub use super as parent;
//~^ ERROR `super` is only public within the crate, and cannot be re-exported outside
pub use self::super as parent2;
//~^ ERROR `super` is only public within the crate, and cannot be re-exported outside
pub use super::{self as parent3};
//~^ ERROR `self` is only public within the crate, and cannot be re-exported outside
pub use self::{super as parent4};
//~^ ERROR `super` is only public within the crate, and cannot be re-exported outside
pub use crate as root;
pub use crate::{self as root2};
pub use super::super as root3;
}
}
pub use foo::*;
pub use foo::bar::*;
pub fn main() {}