This broke no code at all, so I guess people were already writing imports in this style. Issue #1228
7 lines
157 B
Rust
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"; }
|