summary refs log tree commit diff
path: root/src/test/compile-fail/import-glob-circular.rs
blob: 588b0d5848ee559d92108c14c939e4cf6f3932d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

// error-pattern: unresolved name
mod circ1 {
    import circ1::*;
    export f1;
    export f2;
    export common;
    fn f1() { #debug("f1"); }
    fn common() -> uint { ret 0u; }
}

mod circ2 {
    import circ2::*;
    export f1;
    export f2;
    export common;
    fn f2() { #debug("f2"); }
    fn common() -> uint { ret 1u; }
}

mod test {
    import circ1::*;

    fn test() { f1066(); }
}