rust/src/test/run-pass/import7.rs

21 lines
334 B
Rust

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