]> git.lizzy.rs Git - rust.git/blob - src/test/ui/resolve/use_suggestion.stderr
Rollup merge of #105843 - compiler-errors:sugg-const, r=lcnr
[rust.git] / src / test / ui / resolve / use_suggestion.stderr
1 error[E0433]: failed to resolve: use of undeclared type `HashMap`
2   --> $DIR/use_suggestion.rs:2:14
3    |
4 LL |     let x1 = HashMap::new();
5    |              ^^^^^^^ use of undeclared type `HashMap`
6    |
7 help: consider importing this struct
8    |
9 LL | use std::collections::HashMap;
10    |
11
12 error[E0412]: cannot find type `HashMap` in this scope
13   --> $DIR/use_suggestion.rs:5:13
14    |
15 LL |     let y1: HashMap;
16    |             ^^^^^^^ not found in this scope
17    |
18 help: consider importing this struct
19    |
20 LL | use std::collections::HashMap;
21    |
22
23 error[E0412]: cannot find type `GooMap` in this scope
24   --> $DIR/use_suggestion.rs:6:13
25    |
26 LL |     let y2: GooMap;
27    |             ^^^^^^ not found in this scope
28
29 error[E0433]: failed to resolve: use of undeclared type `GooMap`
30   --> $DIR/use_suggestion.rs:3:14
31    |
32 LL |     let x2 = GooMap::new();
33    |              ^^^^^^ use of undeclared type `GooMap`
34
35 error: aborting due to 4 previous errors
36
37 Some errors have detailed explanations: E0412, E0433.
38 For more information about an error, try `rustc --explain E0412`.