PageRenderTime 6ms CodeModel.GetById 1ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/src/test/compile-fail/import-glob-circular.rs

http://github.com/jruderman/rust
Rust | 25 lines | 20 code | 4 blank | 1 comment | 0 complexity | df518e30e204827f1a9a103c16fc5ede MD5 | raw file
 1// error-pattern: unresolved
 2
 3mod circ1 {
 4    import circ1::*;
 5    export f1;
 6    export f2;
 7    export common;
 8    fn f1() { debug!{"f1"}; }
 9    fn common() -> uint { return 0u; }
10}
11
12mod circ2 {
13    import circ2::*;
14    export f1;
15    export f2;
16    export common;
17    fn f2() { debug!{"f2"}; }
18    fn common() -> uint { return 1u; }
19}
20
21mod test {
22    import circ1::*;
23
24    fn test() { f1066(); }
25}