rust/src/test/compile-fail/import4.rs

7 lines
161 B
Rust

// error-pattern: cyclic import
mod a { import foo = b::foo; export foo; }
mod b { import foo = a::foo; export foo; }
fn main(args: [str]) { #debug("loop"); }