rust/src/test/compile-fail/import-loop-2.rs

16 lines
184 B
Rust

// error-pattern:import
mod a {
#[legacy_exports];
import b::x;
export x;
}
mod b {
#[legacy_exports];
import a::x;
export x;
fn main() { let y = x; }
}