/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. mod circ1 {
  3. import circ1::*;
  4. export f1;
  5. export f2;
  6. export common;
  7. fn f1() { debug!{"f1"}; }
  8. fn common() -> uint { return 0u; }
  9. }
  10. mod circ2 {
  11. import circ2::*;
  12. export f1;
  13. export f2;
  14. export common;
  15. fn f2() { debug!{"f2"}; }
  16. fn common() -> uint { return 1u; }
  17. }
  18. mod test {
  19. import circ1::*;
  20. fn test() { f1066(); }
  21. }