E0433 Failed to Resolve Fix
A path named something the compiler cannot find: a crate never linked, a module never declared, a type never imported or never defined. This guide separates six shapes that produce E0433 and matches each one to the change that makes the name resolve: import it, declare it, prefix it, spell it right, or define it.
Written November 23, 2026 · Tested with Rust 1.99.1 · 26 min read
- The rule underneath: a path resolves segment by segment, from the first name
- How to read the diagnostic
- The first failure: a standard library type used without its import
- The second failure: an external crate that was never linked
Written November 23, 2026
Tested with Rust 1.99.1
What this guide is
Error E0433 is a name that does not resolve. The error codes index states it in one line: an undeclared crate, module, or type was used. Every path in Rust - rand::random, helpers::answer, HashMap::new, std::collections::HashMap - is resolved segment by segment, starting from the first name, and E0433 is the error when a segment names something that is not there: not linked as a dependency, not declared as a module, not imported into scope, or not defined at all. The code after the path is usually fine; the compiler never gets that far, because it cannot work out what the path refers to.
The six forms in this guide each reproduce E0433 with a small, complete program, and each fails on a different kind of missing name. A standard library type used with no import. An external crate that was never linked. A module of your own that was never declared. A module that exists at the crate root but is named from a sibling module without the crate:: prefix. One misspelled segment inside an otherwise correct std path. And a type of your own that the code calls but nothing defines. In each family the failing program is small, the full compiler output is shown, and the fix supplies the missing name in the way that family needs: an import, a full path, a mod declaration, a prefix, a corrected spelling, or a definition.
Four neighboring results are not E0433 and are worked only in the traps and the decision summary. The same missing name written in a use declaration is E0432, unresolved import - the position of the name decides the code. The same name in a type annotation, or a missing value name, is E0425, cannot find value or type in this scope - the subject of the E0425 guide. A module that exists but is private is E0603, and a module that is declared but whose file is missing is E0583: in both, resolution found something and the failure is a different one.
Build every program in this guide with rustc --edition 2021. In the compiler transcripts below, the file names are the bare names shown on the command line.
The rule underneath: a path resolves segment by segment, from the first name
A path is a chain of names separated by ::, and the compiler resolves it left to right. The first segment has to be one of a small set of things: a crate the program links (the standard library's std and core, or an external crate added as a dependency), a module or item already in scope in the current module, or one of the path prefixes crate, self, and super, which start the walk at the crate root, the current module, and the parent module. Each later segment then has to name an item inside what the previous segment resolved to. For the crate, module, and type names this guide covers, E0433 fires at the first segment that names nothing - and the diagnostic tells you which segment that was, because the header and the caret change shape with the position of the failure. A missing name in the value namespace is different: a function segment a module does not have is E0425, and an associated item a resolved type does not have is E0599.
That is why one missing name produces several different-looking errors in this guide. When the first segment is a type used as a path - HashMap::new() - the header reads "cannot find type" and the label reads "use of undeclared type". When the first segment should have been a crate or module - rand::random, helpers::answer - the header reads "cannot find module or crate" and the label reads "use of unresolved module or unlinked crate". When the first segments resolve and a later one does not - std::collection::HashMap, with collection misspelled - the header names the pair: "cannot find collection in std". Reading which segment the caret sits under is the whole diagnosis: it separates "this was never brought into existence" from "this exists, but not under that name or not from here".
Two consequences follow. First, existence is not enough - the name also has to be reachable from where the path is written. A module declared at the crate root is not in scope inside a sibling module, so the same helpers::answer() that resolves in main fails inside mod report until the path starts with crate::. Second, for a missing crate, module, or type name, the position of the name in the program decides which error code it gets, before any question of what the name is. Written at the start of a path, it is E0433. Written in a use declaration, it is E0432. Written as a type annotation, it is E0425. The traps section compiles all three positions for closely related names, so the split can be read off the headers. Other positions have their own codes - a missing trait name in an impl header, for example, is E0405 - so read this split as covering the names in this guide, not every name in a program.
How to read the diagnostic
The header names what kind of thing failed to resolve, and the caret marks the exact segment. "cannot find type HashMap in this scope" with the label "use of undeclared type" means the name was expected to be a type in scope - imported or defined - and is neither. "cannot find module or crate rand in this scope" with the label "use of unresolved module or unlinked crate" means the first segment was expected to start a path into a crate or module, and no crate or module by that name is available. "cannot find collection in std" means the walk started fine and broke partway: an early segment resolved, a later one did not, and the header names both the missing segment and the module it was looked up in.
The helps are worth reading because they point at the remedy family, not just the error. "consider importing this struct", printed with the exact use line to add, means the item exists in the standard library and only the import is missing. "you might be missing a crate named rand" means the compiler has no candidate at all - the name is not a misspelling of something linked, it is absent, and the fix is to link it or stop using it. And where the module exists elsewhere in your own crate, the help offers the import with its full path - "consider importing this module: use crate::helpers;" - which is the compiler telling you the name is real but not visible from here.
The first failure: a standard library type used without its import
HashMap lives in std::collections. Nothing in this program imports it, declares it, or defines it, so the path HashMap::new() starts from a name that is not in scope. This is the error codes index's own erroneous example:
fn main() {
let map = HashMap::new();
println!("{:?}", map);
}
$ rustc --edition 2021 fail_undeclared_type.rs -o fail_undeclared_type
error[E0433]: cannot find type `HashMap` in this scope
--> fail_undeclared_type.rs:2:15
|
2 | let map = HashMap::new();
| ^^^^^^^ use of undeclared type `HashMap`
|
help: consider importing this struct
|
1 + use std::collections::HashMap;
|
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0433`.
The header reads "cannot find type" and the label "use of undeclared type" - the name was used as a type path, in expression position. The help prints the fix verbatim, and the fix is the import:
use std::collections::HashMap;
fn main() {
let mut map: HashMap<u32, u32> = HashMap::new();
map.insert(7, 70);
println!("{:?}", map);
}
$ rustc --edition 2021 fix_use_import.rs -o fix_use_import
$ ./fix_use_import
{7: 70}
The output is {7: 70} - the map the program built, with the entry it inserted. The use line brings the one name into scope; every later use of HashMap in the module resolves against it.
The import is not the only way to supply the name. Writing the full path at the use site resolves the same type with no use line at all:
fn main() {
let mut map = std::collections::HashMap::new();
map.insert("blue", 10);
println!("{:?}", map);
}
$ rustc --edition 2021 fix_full_path.rs -o fix_full_path
$ ./fix_full_path
{"blue": 10}
The output is {"blue": 10}. A full path is the right shape for a name used once; the import earns its line when the name recurs. What does not work is splitting the difference - a half-remembered path or a name the prelude does not cover. The prelude auto-imports a fixed set of common items, and HashMap is not among them, which is why this particular error meets almost every Rust beginner.
The second failure: an external crate that was never linked
rand is a real crate, but a program can only path into crates it links. This program never links it, so the first segment resolves to nothing:
fn main() {
let n = rand::random::<u32>();
println!("{}", n);
}
$ rustc --edition 2021 fail_undeclared_crate.rs -o fail_undeclared_crate
error[E0433]: cannot find module or crate `rand` in this scope
--> fail_undeclared_crate.rs:2:13
|
2 | let n = rand::random::<u32>();
| ^^^^ use of unresolved module or unlinked crate `rand`
|
= help: you might be missing a crate named `rand`
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0433`.
The label is the crate form: "use of unresolved module or unlinked crate rand", and the note is the honest one - "you might be missing a crate named rand". Unlike the HashMap family, there is no import line that fixes this, because there is nothing yet to import from: an import names an item inside a crate that is already linked, and linking is what is missing.
The remedy is the one the error codes index states: make sure the crate has been added as a dependency in Cargo.toml. In a Cargo project that is a single line in the [dependencies] section, after which rand::random resolves and a use can bring individual items into scope. Under a bare rustc invocation like the ones in this guide there is no manifest and no dependency mechanism at all, so this family has no fixed single-file program to show - the failing program above is the complete demonstration, and the fix lives in the project's manifest, not in the source file. When this error names a crate you did not intend to depend on, the other reading is a typo at the first segment - compare the third family, where the same header shape turns out to be a module of your own.
The third failure: a module of your own that was never declared
Here the name is not a crate at all. The code calls helpers::answer() expecting a module in the same crate, but no mod helpers exists anywhere, so the first segment fails exactly as the crate did:
fn main() {
let a = helpers::answer();
println!("{}", a);
}
$ rustc --edition 2021 fail_undeclared_module.rs -o fail_undeclared_module
error[E0433]: cannot find module or crate `helpers` in this scope
--> fail_undeclared_module.rs:2:13
|
2 | let a = helpers::answer();
| ^^^^^^^ use of unresolved module or unlinked crate `helpers`
|
= help: you might be missing a crate named `helpers`
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0433`.
The header and label are word-for-word the crate family's - "cannot find module or crate helpers in this scope", "use of unresolved module or unlinked crate" - and the note even suggests a missing crate named helpers. The compiler cannot tell from the path alone whether helpers was meant to be a dependency or a module in this crate; both are absent, and both read the same. The note is a guess, and in this program it guesses wrong.
A module comes into existence by being declared. Declaring it - inline, in this case - is the whole fix:
mod helpers {
pub fn answer() -> u32 {
42
}
}
fn main() {
let a = helpers::answer();
println!("{}", a);
}
$ rustc --edition 2021 fix_declare_module.rs -o fix_declare_module
$ ./fix_declare_module
42
The output is 42, the value the module's function returns. An inline mod helpers block declares the module in this file; a mod helpers; declaration with a semicolon declares it too, but then the compiler looks for the module's contents in a file - and if that file is missing, the error is a different one, E0583, worked in the traps. Declaring a module and importing a module are different acts: mod creates the name, use only brings an existing name into scope, which is why no use line could have fixed this program.
The fourth failure: a sibling module named without the crate:: prefix
This time the module exists. mod helpers is declared at the crate root, and main can call it - but the failing call is inside mod report, a sibling module, and from there the bare path does not resolve:
mod helpers {
pub fn answer() -> u32 {
42
}
}
mod report {
pub fn show() {
println!("{}", helpers::answer());
}
}
fn main() {
report::show();
}
$ rustc --edition 2021 fail_sibling_path.rs -o fail_sibling_path
error[E0433]: cannot find module or crate `helpers` in this scope
--> fail_sibling_path.rs:9:24
|
9 | println!("{}", helpers::answer());
| ^^^^^^^ use of unresolved module or unlinked crate `helpers`
|
= help: you might be missing a crate named `helpers`
help: consider importing this module
|
8 + use crate::helpers;
|
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0433`.
The caret is on helpers inside report::show, and the header is again "cannot find module or crate helpers in this scope" - the scope in question is report, where the crate root's module is not in scope as a path start. The second help gives the diagnosis away: "consider importing this module", with the line use crate::helpers;. The module was never missing; the path started in the wrong place.
The error codes index states this fix directly: to use a module from your current crate, add the crate:: prefix to the path. Starting the path at the crate root makes every segment resolve:
mod helpers {
pub fn answer() -> u32 {
42
}
}
mod report {
pub fn show() {
println!("{}", crate::helpers::answer());
}
}
fn main() {
report::show();
}
$ rustc --edition 2021 fix_crate_prefix.rs -o fix_crate_prefix
$ ./fix_crate_prefix
42
The output is 42. The crate:: prefix is the explicit form; the use crate::helpers; line the help offers is the same route taken once, at the top of report, instead of at each call. Either way the change is to the path's starting point, not to the module - moving helpers, renaming it, or redeclaring it inside report would all treat a visibility problem as an existence problem.
The fifth failure: one misspelled segment in a std path
Both paths in this program name std's hash map. The annotation spells std::collections correctly; the constructor path spells the second segment collection, singular - and that one segment is enough:
fn main() {
let map: std::collections::HashMap<u32, u32> = std::collection::HashMap::new();
println!("{:?}", map);
}
$ rustc --edition 2021 fail_misspelled_std.rs -o fail_misspelled_std
error[E0433]: cannot find `collection` in `std`
--> fail_misspelled_std.rs:2:57
|
2 | let map: std::collections::HashMap<u32, u32> = std::collection::HashMap::new();
| ^^^^^^^^^^ could not find `collection` in `std`
|
help: consider importing this struct
|
1 + use std::collections::HashMap;
|
help: if you import `HashMap`, refer to it directly
|
2 - let map: std::collections::HashMap<u32, u32> = std::collection::HashMap::new();
2 + let map: std::collections::HashMap<u32, u32> = HashMap::new();
|
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0433`.
The header changes shape for a mid-path failure: "cannot find collection in std" - the missing segment and the module it was looked up in, both named, and the caret under the misspelled segment alone. The annotation on the same line drew no error, because it resolved. Resolution really is segment by segment: a path is only as good as its worst segment, and the diagnostic points at exactly that segment rather than at the path as a whole.
Correcting the segment is the whole fix:
fn main() {
let mut map: std::collections::HashMap<u32, u32> = std::collections::HashMap::new();
map.insert(3, 30);
println!("{:?}", map);
}
$ rustc --edition 2021 fix_spelled_path.rs -o fix_spelled_path
$ ./fix_spelled_path
{3: 30}
The output is {3: 30}. When the header names a segment inside a module - "cannot find X in Y" - read it as a spelling or a wrong-module problem, not a missing-import problem: the walk reached Y, so Y is linked and found, and what is missing is a member of it. The compiler's other helps in the failing transcript make the same point from the side - both offer to route around the segment by importing HashMap and referring to it directly.
The sixth failure: a type of your own that was never defined
The last family is the HashMap shape turned inward. Config::load() is a path on a type the program expects to have - but nothing named Config is defined, imported, or declared anywhere in it:
fn main() {
let c = Config::load();
println!("{}", c.retries);
}
$ rustc --edition 2021 fail_undeclared_local_type.rs -o fail_undeclared_local_type
error[E0433]: cannot find type `Config` in this scope
--> fail_undeclared_local_type.rs:2:13
|
2 | let c = Config::load();
| ^^^^^^ use of undeclared type `Config`
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0433`.
The header is the type form again - "cannot find type Config in this scope", "use of undeclared type" - and this time there is no help at all: no import to suggest, because no linked crate is known to provide a Config, and no similar name to offer. A silent help section is itself a signal. When the compiler can name the fix, the item exists somewhere it can see; when it cannot, the item most likely exists nowhere, and the missing piece is a definition. The shape of a type - a struct with an associated function, as the structs guide covers - is what has to be supplied:
struct Config {
retries: u32,
}
impl Config {
fn load() -> Config {
Config { retries: 3 }
}
}
fn main() {
let c = Config::load();
println!("{}", c.retries);
}
$ rustc --edition 2021 fix_define_type.rs -o fix_define_type
$ ./fix_define_type
3
The output is 3, the retries value the defined load constructor sets. The failing program's call site did not change at all; what changed is that the name now refers to something. Before writing a definition, check the two cheaper explanations the earlier families cover: the type may exist in the standard library or a dependency under this name and need only its import (first family), or it may be defined in another module of the same crate and need a crate:: path or a use to reach it (fourth family). Define a new type only when neither is true - defining a second Config beside an existing one trades a resolution error for a design problem.
The fixes in reach order
- The name is a standard library or dependency item used unqualified: import it -
use std::collections::HashMap;- as the diagnostic's own help prints it. - The name is used once and an import line is not worth it: write the full path at the use site,
std::collections::HashMap::new(). - The first segment is an external crate: link it first - add it as a dependency in
Cargo.toml. Nouseline can import from a crate that is not linked. - The first segment is a module of your own that does not exist yet: declare it -
mod helperswith its contents inline, ormod helpers;with the contents inhelpers.rsorhelpers/mod.rs. - The module exists at the crate root but the path is written inside another module: start the path with
crate::, or bring the name in withuse crate::helpers;at the top of that module. - The header names a segment inside a module ("cannot find
collectioninstd"): the walk broke partway - check that segment's spelling, and that the item is a member of that module and not a sibling of it. - The name is a type of your own with no help offered: define it - the call site is probably right, and the definition is what is missing. Rule out the import and the
crate::path first.
Traps
- The same missing crate inside a
usedeclaration is E0432, not E0433. Moving therandpath from the expression into ausechanges the code, not the underlying problem:
use rand::Rng;
fn main() {
println!("ready");
}
$ rustc --edition 2021 probe_e0432_use_crate.rs -o probe_e0432_use_crate
error[E0432]: unresolved import `rand`
--> probe_e0432_use_crate.rs:1:5
|
1 | use rand::Rng;
| ^^^^ use of unresolved module or unlinked crate `rand`
|
= help: you might be missing a crate named `rand`
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0432`.
rand" - a use declaration resolves its path under E0432, while the same name in an expression path is E0433. When a search for the error code in the index lands on the wrong page, check which position the failing name sits in: use line, E0432; at the start of an expression path, E0433.
- A misspelled item inside a use is likewise E0432 - and here the compiler can name the intended item:use std::collections::HashMapp;
fn main() {
println!("ready");
}
$ rustc --edition 2021 probe_e0432_use_std.rs -o probe_e0432_use_std
error[E0432]: unresolved import `std::collections::HashMapp`
--> probe_e0432_use_std.rs:1:5
|
1 | use std::collections::HashMapp;
| ^^^^^^^^^^^^^^^^^^--------
| |
| no `HashMapp` in `collections`
|
help: a similar name exists in the module
|
1 - use std::collections::HashMapp;
1 + use std::collections::HashMap;
|
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0432`.
The header reads "unresolved import std::collections::HashMapp", the label reads "no HashMapp in collections", and the help offers the similar name that exists. Compare the fifth family: the same kind of misspelling written in an expression path is E0433, with the header naming the segment and its module. The position decides the code; the spelling is the same mistake in both.
- The same name in a type annotation is E0425, not E0433. This is the first family's name in annotation position - no path, no ::new():
fn main() {
let map: HashMap<u32, u32>;
println!("{:?}", map);
}
$ rustc --edition 2021 probe_e0425_type.rs -o probe_e0425_type
error[E0425]: cannot find type `HashMap` in this scope
--> probe_e0425_type.rs:2:14
|
2 | let map: HashMap<u32, u32>;
| ^^^^^^^ not found in this scope
|
help: consider importing this struct
|
1 + use std::collections::HashMap;
|
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0425`.
The header reads "cannot find type HashMap in this scope" under E0425, with the label "not found in this scope". Set beside the first family, the split is exact: HashMap as an annotation is E0425; HashMap::new() as a path is E0433, even though the header's first five words are identical. The error codes index defines E0425 as a name that cannot be found in this scope. The full treatment is in the E0425 guide.
- A missing value name is E0425 as well. Nothing here is a path at all - total is a plain variable name that was never bound:
fn main() {
println!("{}", total);
}
$ rustc --edition 2021 probe_e0425_value.rs -o probe_e0425_value
error[E0425]: cannot find value `total` in this scope
--> probe_e0425_value.rs:2:20
|
2 | println!("{}", total);
| ^^^^^ not found in this scope
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0425`.
The header reads "cannot find value total in this scope". Values are never resolved through ::, so a missing variable can only be E0425: no import, module, or definition of a type is involved, and the fix is to bind the name or correct it to the variable that exists.
- A module that exists but is private is E0603, not E0433. Here inner::secret is declared - resolution finds it - and the failure is visibility:
mod inner {
mod secret {
pub fn code() -> u32 {
7
}
}
pub fn reveal() -> u32 {
secret::code()
}
}
fn main() {
println!("{}", inner::secret::code());
}
$ rustc --edition 2021 probe_e0603_private.rs -o probe_e0603_private
error[E0603]: module `secret` is private
--> probe_e0603_private.rs:14:27
|
14 | println!("{}", inner::secret::code());
| ^^^^^^ ---- function `code` is not publicly re-exported
| |
| private module
|
note: the module `secret` is defined here
--> probe_e0603_private.rs:2:5
|
2 | mod secret {
| ^^^^^^^^^^
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0603`.
The header reads "module secret is private", and the note points at the module's definition. The program's own inner::reveal function can call secret::code() because it sits inside inner; main, outside, cannot. The fix is visibility, not existence: mark the module pub, or call it through a public path such as reveal. The error codes index defines E0603 as an attempt to use a private item or module.
- A declared module whose file is missing is E0583, not E0433. The mod helpers; declaration creates the obligation; the file that should hold the module is what is absent:
mod helpers;
fn main() {
println!("{}", helpers::answer());
}
$ rustc --edition 2021 probe_e0583_modfile.rs -o probe_e0583_modfile
error[E0583]: file not found for module `helpers`
--> probe_e0583_modfile.rs:1:1
|
1 | mod helpers;
| ^^^^^^^^^^^^
|
= help: to create the module `helpers`, create file "helpers.rs" or "helpers/mod.rs"
= note: if there is a `mod helpers` elsewhere in the crate already, import it with `use crate::...` instead
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0583`.
The header reads "file not found for module helpers", and the help names the two file shapes the compiler looked for - helpers.rs or helpers/mod.rs. Compare the third family: there, no declaration existed at all and the error was E0433 at the call site. A semicolon mod declaration moves the failure from the use of the name to the declaration itself, under a different code - and its own note covers the fourth family's case too: if a mod helpers exists elsewhere in the crate already, import it with use crate::... instead of redeclaring it.
Decision summary
- The header says "cannot find type" a name "in this scope", the label says "use of undeclared type", and the caret is on a path like
HashMap::new(): a type name used as a path is not in scope (E0433) - import it, write its full path, or define it. - The header says "cannot find module or crate" a name "in this scope", with the label "use of unresolved module or unlinked crate": the path's first segment is absent (E0433) - link the crate, declare the module, or, if the module exists at the crate root and the call is inside another module, start the path with
crate::. - The header says "cannot find" a segment "in" a module: the walk broke partway (E0433) - that segment is misspelled, or the item lives in a different module than the path claims.
- The help offers an import line with a full path: the item exists and the compiler can see it - take the import, or the
crate::path it implies. - The help is absent and the name is your own type: nothing linked provides it - the definition is missing.
- The failing name sits in a
usedeclaration and the header says "unresolved import": E0432 - same underlying absence, different position, different code. - The header says "cannot find type" or "cannot find value" under E0425, with the label "not found in this scope": the name is in annotation position or is a plain value. E0425 also covers a path whose last segment names a function the module does not have - "cannot find function
namein modulemodule" - so a path can end in E0425 when the missing segment is a value, not a crate, module, or type. - The header says a module "is private" (E0603): the module resolved - fix visibility with
pubor a public re-export, not existence. - The header says "file not found for module" (E0583): the declaration exists and its file does not - create
helpers.rsorhelpers/mod.rs, or make the module inline.
Checklist
- The caret's segment identified: first segment or a later one - the header's shape ("in this scope" against "in
std") already says which. - The kind of thing the segment should be: crate, module, or type - read it off the label ("unlinked crate", "undeclared type") before reaching for a fix.
- The help read: an offered import means the item exists somewhere visible; "you might be missing a crate" means it is absent entirely; no help on your own type means the definition is missing.
- Existence checked before visibility, and visibility before spelling: declare or link first, then
crate::reachability, then segment-by-segment spelling. - Position checked when the code surprises: for a crate, module, or type name, the same missing name is E0432 in a
use, E0433 at the start of a path, E0425 in an annotation or as a value. - A
mod name;declaration matched with its file:name.rsorname/mod.rspresent, or the module made inline. - The fixed program run, and its output checked against what the failing program was trying to compute.
Related guides on this site
Sources
- Rust, Error codes index: E0433 - the definition of the error: an undeclared crate, module, or type was used; its examples use a
HashMapwith no import and an unlinked crate name, and its stated fixes are to import the item, to add the crate as a dependency inCargo.toml, and to add thecrate::prefix to use a module from the current crate. - The Rust Programming Language, Defining Modules to Control Scope and Privacy - how
moddeclarations bring a module into existence, inline or in a file of the module's name, and how the module tree is rooted at the crate root. - The Rust Programming Language, Paths for Referring to an Item in the Module Tree - absolute paths starting from the crate root with
crateand relative paths starting from the current module, and the visibility rules that decide which paths are allowed. - The Rust Reference, Paths - the path forms and their resolution: simple paths,
crate,self, andsuperpath prefixes, and how each segment is resolved in the appropriate namespace. - The Rust Reference, Modules - the module item itself: inline modules and module files, and how a
moddeclaration loads its source file. - Rust, Error codes index: E0432 - the neighboring resolution error: an unresolved import; the distinction from E0433 is position - the failing name sits in a
usedeclaration. - Rust, Error codes index: E0425 - the neighboring scope error: a value or type name cannot be found in this scope; the distinction from E0433 is the namespace and position - the name stands alone as a value or an annotation, or is a path's final segment naming a function a module does not have.
Keep Exploring
The full Rust hub \u2014 ownership, structs and enums, async, and measured comparisons.
Every guide on the site in one list, grouped by topic.
Every browser-only checker and verifier on the site.
The C++, Python, Sysadmin, Rust, Go, and TypeScript hubs.