]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/export-non-interference2.rs
cleanup: s/impl Copy/#[derive(Copy)]/g
[rust.git] / src / test / run-pass / export-non-interference2.rs
index 464acfba9344dd473d540869b426b5ceaeb178ca..0b9b8fbcfd33a98c4a78b5492e43cc171a5a2e39 100644 (file)
@@ -9,16 +9,11 @@
 // 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(); }