<p dir="auto">Something like this should really produce a better error message:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="mod foo {                                                                                           
  extern mod extra;                                                                                 

  use foo::extra;                                                                                       
}

/////////////////////////////////
//The error:
//bug-testing.rs:4:6: 4:16 error: unresolved import
//bug-testing.rs:4   use foo::extra;
//                       ^~~~~~~~~~
//error: aborting due to previous error
//////////////////////////////////"><pre class="notranslate"><code class="notranslate">mod foo {                                                                                           
  extern mod extra;                                                                                 

  use foo::extra;                                                                                       
}

/////////////////////////////////
//The error:
//bug-testing.rs:4:6: 4:16 error: unresolved import
//bug-testing.rs:4   use foo::extra;
//                       ^~~~~~~~~~
//error: aborting due to previous error
//////////////////////////////////
</code></pre></div>
<p dir="auto">Not sure whether current compiler state makes it difficult to identify this and other reasons for failed resolution, but if it's fairly simple better error messages would be great.</p>
<p dir="auto">Example:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Foo {a: 1, b: 2, c: 3,
d: 4, e: 5}"><pre class="notranslate"><code class="notranslate">Foo {a: 1, b: 2, c: 3,
d: 4, e: 5}
</code></pre></div>
<p dir="auto">if you indent the second line, it will work and result in:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Foo {a: 1, b: 2, c: 3,
     d: 4, e: 5}"><pre class="notranslate"><code class="notranslate">Foo {a: 1, b: 2, c: 3,
     d: 4, e: 5}
</code></pre></div>
<p dir="auto">However, if there were a space after the '{':</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Foo { a: 1, b: 2, c: 3,
d: 4, e: 5}"><pre class="notranslate"><code class="notranslate">Foo { a: 1, b: 2, c: 3,
d: 4, e: 5}
</code></pre></div>
<p dir="auto">you would expect pressing tab on the second line to indent to:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Foo { a: 1, b: 2, c: 3,
      d: 4, e: 5}"><pre class="notranslate"><code class="notranslate">Foo { a: 1, b: 2, c: 3,
      d: 4, e: 5}
</code></pre></div>
<p dir="auto">instead an error is raised, saying that <code class="notranslate">forward-to-word</code>'s definition is void.</p>