Closed
Description
rustc often offers a help to import something from std and core:
error[E0433]: failed to resolve: use of undeclared type `NonZeroU32`
--> ...\test.rs:20:33
|
20 | ... NonZeroU32::new(5).unwrap(),
| ^^^^^^^^^^ not found in this scope
|
help: consider importing one of these items
|
6 | use core::num::NonZeroU32;
|
6 | use std::num::NonZeroU32;
|
Perhaps in such situations rustc could use an heuristic to suggest only one of the two imports.