Closed
Description
struct S {
m: Vec<Hashmap<String, ()>>,
}
error[E0412]: cannot find type `Hashmap` in this scope
--> src/main.rs:2:12
|
1 | struct S {
| - help: you might be missing a type parameter: `<Hashmap>`
2 | m: Vec<Hashmap<String, ()>>,
| ^^^^^^^ not found in this scope
Rustc should know that struct S<Hashmap>
is not in the right direction because that still wouldn't make Hashmap<String, ()>
a valid thing to write; type parameters can't have type parameters (yet??).
Separately, #70572 should also have prevented the suggestion in this case, but is an independent issue.