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

16 lines
179 B
Rust

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