This is not a real big deal, however rustc keeps suggesting "ZipImpl", which is a implementation detail and rarely is what people want.
Any chance to rename it somehow?
Could you provide more context? A sample of the code and the error message suggesting ZipImpl would be helpful.
struct T;
fn main() {
T::new();
}
Compiling playground v0.0.1 (file:///playground)
error[E0599]: no function or associated item named `new` found for type `main::T` in the current scope
--> src/main.rs:3:5
|
3 | T::new();
| ^^^^^^
|
= help: items from traits can only be used if the trait is implemented and in scope
= note: the following trait defines an item `new`, perhaps you need to implement it:
candidate #1: `std::iter::ZipImpl`
Maybe the suggestions should filter out #[doc(hidden)] items?
oddly enough, ZipImpl isn't just #[doc(hidden)], but it is, in fact, _private_.
Currently, we just check that at least one of the type and the trait is local, so indeed, this will false-positive for private traits:
CC #25358, #26454.
Most helpful comment