54ca8565c9
and make sure that circular glob imports don't diverge.
29 lines
306 B
Rust
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();
|
|
}
|
|
} |