add a note if a type implements a trait with the same name as the required trait #133123
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-trait-system
Area: Trait system
E-help-wanted
Call for participation: Help is requested to fix this issue.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Current output
Desired output
Rationale and extra context
This can easily happen if you accidentally have two different versions of the same crate in your dependency tree (see this URLO thread), or have two dependencies that use different trait for the same thing (eg.
tokio::io::AsyncRead
andfutures_io::AsyncRead
)Other cases
Rust Version
Anything else?
No response
The text was updated successfully, but these errors were encountered: