rust/src/test/compile-fail/import-glob-circular.rs
Paul Stansifer 54ca8565c9 Fix bugs: make sure glob imports show up in the right module,
and make sure that circular glob imports don't diverge.
2011-05-27 02:42:33 +00:00

29 lines
306 B
Rust

// error-pattern: unresolved name
mod circ1 {
import circ1::*;
fn f1() {
log "f1";
}
fn common() -> uint {
ret 0u;
}
}
mod circ2 {
import circ2::*;
fn f2() {
log "f2";
}
fn common() -> uint {
ret 1u;
}
}
mod test {
import circ1::*;
fn test() {
f1066();
}
}