]> git.lizzy.rs Git - rust.git/blob - src/librustc_error_codes/error_codes/E0433.md
Rollup merge of #67875 - dtolnay:hidden, r=GuillaumeGomez
[rust.git] / src / librustc_error_codes / error_codes / E0433.md
1 An undeclared type or module was used.
2
3 Erroneous code example:
4
5 ```compile_fail,E0433
6 let map = HashMap::new();
7 // error: failed to resolve: use of undeclared type or module `HashMap`
8 ```
9
10 Please verify you didn't misspell the type/module's name or that you didn't
11 forget to import it:
12
13
14 ```
15 use std::collections::HashMap; // HashMap has been imported.
16 let map: HashMap<u32, u32> = HashMap::new(); // So it can be used!
17 ```