/src/test/compile-fail/import-loop-2.rs

http://github.com/jruderman/rust · Rust · 13 lines · 9 code · 3 blank · 1 comment · 0 complexity · 6eb67542186cb506778cbd125a9e0ef8 MD5 · raw file

  1. // error-pattern:import
  2. mod a {
  3. import b::x;
  4. export x;
  5. }
  6. mod b {
  7. import a::x;
  8. export x;
  9. fn main() { let y = x; }
  10. }