]> git.lizzy.rs Git - rust.git/blob - src/test/ui/resolve/use_suggestion_placement.stderr
Improve placement of `use` suggestions
[rust.git] / src / test / ui / resolve / use_suggestion_placement.stderr
1 error[E0425]: cannot find value `A` in this scope
2   --> $DIR/use_suggestion_placement.rs:21:13
3    |
4 21 |     let _ = A;
5    |             ^ not found in this scope
6    |
7 help: possible candidate is found in another module, you can import it into scope
8    |
9 11 | use m::A;
10    |
11
12 error[E0412]: cannot find type `HashMap` in this scope
13   --> $DIR/use_suggestion_placement.rs:26:23
14    |
15 26 |     type Dict<K, V> = HashMap<K, V>;
16    |                       ^^^^^^^ not found in this scope
17    |
18 help: possible candidates are found in other modules, you can import them into scope
19    |
20 11 | use std::collections::HashMap;
21    |
22 11 | use std::collections::hash_map::HashMap;
23    |
24
25 error[E0091]: type parameter `K` is unused
26   --> $DIR/use_suggestion_placement.rs:26:15
27    |
28 26 |     type Dict<K, V> = HashMap<K, V>;
29    |               ^ unused type parameter
30
31 error[E0091]: type parameter `V` is unused
32   --> $DIR/use_suggestion_placement.rs:26:18
33    |
34 26 |     type Dict<K, V> = HashMap<K, V>;
35    |                  ^ unused type parameter
36
37 error: aborting due to 4 previous errors
38