<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Use-Statement on ErrorVault — Developer Error Code Dictionary</title>
    <link>https://errorvault.dev/tags/use-statement/</link>
    <description>Recent content in Use-Statement on ErrorVault — Developer Error Code Dictionary</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Sat, 08 Aug 2026 19:56:04 +0800</lastBuildDate>
    <atom:link href="https://errorvault.dev/tags/use-statement/feed.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Fix E0090: Unresolved Import in Rust</title>
      <link>https://errorvault.dev/rust/rust-e0090-unresolved-import/</link>
      <pubDate>Sat, 08 Aug 2026 19:56:04 +0800</pubDate>
      <guid>https://errorvault.dev/rust/rust-e0090-unresolved-import/</guid>
      <description>&lt;h2 id=&#34;1-symptoms&#34;&gt;1. Symptoms&lt;/h2&gt;&#xA;&lt;p&gt;When Rust encounters error E0090, the compiler produces output that clearly identifies which import statement cannot be resolved. The error message includes the exact line number and the problematic path that the compiler failed to find.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-mysql&#34; data-lang=&#34;mysql&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;error[E0090]: unresolved import &lt;span style=&#34;color:#ff79c6&#34;&gt;`&lt;/span&gt;module::submodule&lt;span style=&#34;color:#ff79c6&#34;&gt;`&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; &lt;span style=&#34;color:#ff79c6&#34;&gt;--&amp;gt;&lt;/span&gt; src&lt;span style=&#34;color:#ff79c6&#34;&gt;/&lt;/span&gt;main.rs:&lt;span style=&#34;color:#bd93f9&#34;&gt;3&lt;/span&gt;:&lt;span style=&#34;color:#bd93f9&#34;&gt;5&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#ff79c6&#34;&gt;|&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#bd93f9&#34;&gt;3&lt;/span&gt; &lt;span style=&#34;color:#ff79c6&#34;&gt;|&lt;/span&gt; &lt;span style=&#34;color:#ff79c6&#34;&gt;use&lt;/span&gt; module::submodule;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#ff79c6&#34;&gt;|&lt;/span&gt;     &lt;span style=&#34;color:#ff79c6&#34;&gt;^^^^^^^^^^^^^^^^&lt;/span&gt; could &lt;span style=&#34;color:#ff79c6&#34;&gt;not&lt;/span&gt; find &lt;span style=&#34;color:#ff79c6&#34;&gt;`&lt;/span&gt;submodule&lt;span style=&#34;color:#ff79c6&#34;&gt;`&lt;/span&gt; &lt;span style=&#34;color:#ff79c6&#34;&gt;in&lt;/span&gt; &lt;span style=&#34;color:#ff79c6&#34;&gt;`&lt;/span&gt;module&lt;span style=&#34;color:#ff79c6&#34;&gt;`&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;In more complex scenarios involving external crates, the error might indicate that a crate itself cannot be found:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-mysql&#34; data-lang=&#34;mysql&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;error[E0090]: unresolved import &lt;span style=&#34;color:#ff79c6&#34;&gt;`&lt;/span&gt;external_crate::some_module&lt;span style=&#34;color:#ff79c6&#34;&gt;`&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; &lt;span style=&#34;color:#ff79c6&#34;&gt;--&amp;gt;&lt;/span&gt; src&lt;span style=&#34;color:#ff79c6&#34;&gt;/&lt;/span&gt;lib.rs:&lt;span style=&#34;color:#bd93f9&#34;&gt;5&lt;/span&gt;:&lt;span style=&#34;color:#bd93f9&#34;&gt;12&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#ff79c6&#34;&gt;|&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#bd93f9&#34;&gt;5&lt;/span&gt; &lt;span style=&#34;color:#ff79c6&#34;&gt;|&lt;/span&gt; &lt;span style=&#34;color:#ff79c6&#34;&gt;use&lt;/span&gt; external_crate::some_module;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#ff79c6&#34;&gt;|&lt;/span&gt;            &lt;span style=&#34;color:#ff79c6&#34;&gt;^^^^^^^^^^^&lt;/span&gt; could &lt;span style=&#34;color:#ff79c6&#34;&gt;not&lt;/span&gt; find &lt;span style=&#34;color:#ff79c6&#34;&gt;`&lt;/span&gt;some_module&lt;span style=&#34;color:#ff79c6&#34;&gt;`&lt;/span&gt; &lt;span style=&#34;color:#ff79c6&#34;&gt;in&lt;/span&gt; &lt;span style=&#34;color:#ff79c6&#34;&gt;`&lt;/span&gt;external_crate&lt;span style=&#34;color:#ff79c6&#34;&gt;`&lt;/span&gt; which &lt;span style=&#34;color:#ff79c6&#34;&gt;is&lt;/span&gt; &lt;span style=&#34;color:#ff79c6&#34;&gt;not&lt;/span&gt; a direct dependency&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The compiler may also suggest alternative paths or modules that exist when the exact path cannot be resolved. When the import refers to a non-existent item within an otherwise valid module structure, the error points specifically to the missing item name.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Fix E0401: Cannot Find Type in This Scope</title>
      <link>https://errorvault.dev/rust/rust-e0401-cannot-find-type-scope/</link>
      <pubDate>Sat, 25 Jul 2026 12:44:04 +0800</pubDate>
      <guid>https://errorvault.dev/rust/rust-e0401-cannot-find-type-scope/</guid>
      <description>&lt;h2 id=&#34;1-symptoms&#34;&gt;1. Symptoms&lt;/h2&gt;&#xA;&lt;p&gt;The Rust compiler produces error E0401 when it encounters a reference to a type that does not exist in the current scope. This error manifests with a clear diagnostic message that identifies both the problematic type and its location in your source code. The compiler provides line and column information to help you locate the exact position of the unresolvable type reference.&lt;/p&gt;&#xA;&lt;p&gt;Typical error output from the Rust compiler looks like this:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Fix E0620: Unresolved Import in Rust</title>
      <link>https://errorvault.dev/rust/rust-e0620-unresolved-import/</link>
      <pubDate>Fri, 17 Jul 2026 00:44:04 +0800</pubDate>
      <guid>https://errorvault.dev/rust/rust-e0620-unresolved-import/</guid>
      <description>&lt;h2 id=&#34;1-symptoms&#34;&gt;1. Symptoms&lt;/h2&gt;&#xA;&lt;p&gt;When the Rust compiler encounters error E0620, you will see output similar to the following in your terminal:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;error[E0620]: unresolved import&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; --&amp;gt; src/main.rs:3:5&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  |&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;3 | use std::collections::HashMap;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  |     ^^^^^^^^^^^^^^^^^^^^^^^ unresolved import&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  |&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  = help: possible candidates are found in other crates, provide at least one additional import path like `use crate_name::collections::HashMap`&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Alternatively, when referencing a module that doesn&amp;rsquo;t exist:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;error[E0620]: unresolved import `foo::bar::baz`&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; --&amp;gt; src/lib.rs:5:12&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  |&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;5 | use foo::bar::baz::Quux;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  |            ^^^^^^^^^^^ unresolved import&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The error manifests in several observable ways depending on the context. When you attempt to import a module that has not been declared in the nearest &lt;code&gt;Cargo.toml&lt;/code&gt; or that doesn&amp;rsquo;t exist in the specified path, the compiler halts compilation and reports this specific error code. The error message explicitly states &amp;ldquo;unresolved import&amp;rdquo; and pinpoints the exact location in your source file where the problematic import statement resides.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Fix E0775: Attribute Must Be Placed Before `use`</title>
      <link>https://errorvault.dev/rust/rust-e0775-attribute-before-use/</link>
      <pubDate>Sat, 13 Jun 2026 15:08:04 +0800</pubDate>
      <guid>https://errorvault.dev/rust/rust-e0775-attribute-before-use/</guid>
      <description>&lt;h2 id=&#34;1-symptoms&#34;&gt;1. Symptoms&lt;/h2&gt;&#xA;&lt;p&gt;When you attempt to compile Rust code with an attribute incorrectly placed after a &lt;code&gt;use&lt;/code&gt; statement, the compiler immediately halts and produces error E0775. This error is unambiguous and typically appears during the parsing phase before any actual compilation begins.&lt;/p&gt;&#xA;&lt;p&gt;You will see an error message similar to the following:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;error[E0775]: attribute must be placed before `use`&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; --&amp;gt; src/main.rs:6:1&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  |&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;5 | use std::collections::HashMap;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;6 | #[deprecated]&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;7 | use std::hash::Hash;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  | ^^^^^^^^^^^^^^^^^^^^ help: place attribute before the item: `#[deprecated] use std::hash::Hash;`&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The compiler points directly to the problematic &lt;code&gt;use&lt;/code&gt; statement and suggests the correct placement. The error occurs at the line where the attribute is incorrectly positioned, and the caret (&lt;code&gt;^&lt;/code&gt;) aligns with the &lt;code&gt;use&lt;/code&gt; keyword following the attribute.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
