rust/src/test/run-pass/export-non-interference2.rs

15 lines
183 B
Rust

mod foo {
#[legacy_exports];
export bar;
mod bar {
#[legacy_exports];
fn y() { x(); }
}
fn x() { debug!("x"); }
}
fn main() { foo::bar::y(); }