rust/src/test/compile-fail/import4.rs
Marijn Haverbeke 0f918ddd8b Make import ignore imports coming after them
This broke no code at all, so I guess people were already writing
imports in this style.

Issue #1228
2011-12-02 16:06:55 +01:00

7 lines
157 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]) { log "loop"; }