Rust compiler should avoid mentioning private traits as solution to missing methods #69900
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-bug
Category: This is a bug.
D-incorrect
Diagnostics: A diagnostic that is giving misleading or incorrect information.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Building the following code targeting Windows:
says:
If you add the suggested
use
, you get:I could get behind the suggesting if the module was local to the crate being built, but from an external crate, it's not helpful.
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: