rust/src/test/compile-fail/import-loop-2.rs
2011-07-27 15:54:33 +02:00

13 lines
144 B
Rust

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