You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Foo::bar() invokes do not give suggestions for Foo when it is not in scope #52468
there are two uses of HashMap. Neither is in scope, but only the type gives me a suggestion for how to import it:
error[E0433]: failed to resolve. Use of undeclared type or module `HashMap`
--> src/main.rs:2:32
|
2 | let _: HashMap<u32, u32> = HashMap::new();
| ^^^^^^^ Use of undeclared type or module `HashMap`
error[E0412]: cannot find type `HashMap` in this scope
--> src/main.rs:2:12
|
2 | let _: HashMap<u32, u32> = HashMap::new();
| ^^^^^^^ not found in this scope
help: possible candidates are found in other modules, you can import them into scope
|
1 | use std::collections::HashMap;
|
1 | use std::collections::hash_map::HashMap;
|
Activity
estebank commentedon Jul 17, 2018
Maybe, once the current ticket is resolved, we should also elide suggestions to only appear once the first time they're needed.
estebank commentedon Feb 14, 2020
Triage: no change.
Patryk27 commentedon May 29, 2020
@rustbot claim
Rollup merge of rust-lang#72923 - Patryk27:fix/52468, r=estebank