// except according to those terms.
mod foo {
- #[legacy_exports];
-
- export bar;
-
- mod bar {
- #[legacy_exports];
- fn y() { x(); }
+ pub mod bar {
+ pub fn y() { super::super::foo::x(); }
}
- fn x() { debug!("x"); }
+ pub fn x() { println!("x"); }
}
-fn main() { foo::bar::y(); }
+pub fn main() { self::foo::bar::y(); }