title: Unable to declare a module "cannot declare a new module at this location"
body: <p>I have 3 files: lib.rs, file2.rs and file3.rs. I lib.rs I have this:</p>
  
  <pre><code>mod file2;
  use file2::Struct2;
  </code></pre>
  
  <p>and it's working well. However, doing the same thing in file3 compiles with an error:</p>
  
  <pre><code>mod file2;
  use file2::Struct2;
  
  =&gt; error: cannot declare a new module at this location
  </code></pre>
  
  <p>And if I remove mod <code>file2</code> declaration I get this:</p>
  
  <pre><code>error: unresolved import `Struct2`
  </code></pre>
  
  <p>What's wrong with this?</p>