rust/src/test/ui/resolve/missing-in-namespace.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
572 B
Plaintext
Raw Normal View History

2021-01-18 07:01:09 -06:00
error[E0433]: failed to resolve: could not find `hahmap` in `std`
--> $DIR/missing-in-namespace.rs:2:29
|
LL | let _map = std::hahmap::HashMap::new();
| ^^^^^^^ not found in `std::hahmap`
|
2022-05-02 21:07:47 -05:00
help: consider importing this struct
2021-01-18 07:01:09 -06:00
|
LL | use std::collections::HashMap;
|
2022-05-02 21:07:47 -05:00
help: if you import `HashMap`, refer to it directly
|
LL - let _map = std::hahmap::HashMap::new();
LL + let _map = HashMap::new();
|
2021-01-18 07:01:09 -06:00
error: aborting due to previous error
For more information about this error, try `rustc --explain E0433`.