/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
- // error-pattern: unresolved
- mod circ1 {
- import circ1::*;
- export f1;
- export f2;
- export common;
- fn f1() { debug!{"f1"}; }
- fn common() -> uint { return 0u; }
- }
- mod circ2 {
- import circ2::*;
- export f1;
- export f2;
- export common;
- fn f2() { debug!{"f2"}; }
- fn common() -> uint { return 1u; }
- }
- mod test {
- import circ1::*;
- fn test() { f1066(); }
- }