Content-Length: 24611 | pFad | https://doc.rust-lang.org/std/string/../error/../string/../vec/../../../../error_codes/./E0433.html

E0433 - Error codes index

Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Error code E0433

An undeclared crate, module, or type was used.

Erroneous code example:

#![allow(unused)]
fn main() {
let map = HashMap::new();
// error: failed to resolve: use of undeclared type `HashMap`
}

Please verify you didn’t misspell the type/module’s name or that you didn’t forget to import it:

#![allow(unused)]
fn main() {
use std::collections::HashMap; // HashMap has been imported.
let map: HashMap<u32, u32> = HashMap::new(); // So it can be used!
}

If you’ve expected to use a crate name:

#![allow(unused)]
fn main() {
use ferris_wheel::BigO;
// error: failed to resolve: use of undeclared module or unlinked crate
}

Make sure the crate has been added as a dependency in Cargo.toml.

To use a module from your current crate, add the crate:: prefix to the path.









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://doc.rust-lang.org/std/string/../error/../string/../vec/../../../../error_codes/./E0433.html

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy