Misleading message: "error: the trait Foo
is not implemented for the type Bar
"
#32611
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
D-crate-version-mismatch
Diagnostics: Errors or lints caused be the use of two different crate versions.
S-needs-repro
Status: This issue has no reproduction and needs a reproduction to make progress.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Consider three crates High, Mid and Low, where:
This is a quite common case.
Now, it sometimes happens that the dependency of Mid is bumped to a more recent version of Low. If, however, the developer fails to bump the dependency of High to a more recent version of Low, surprising error messages arise.
In particular,
may arise, without any change to the code of either
Foo
orBar
.It would be great if the compiler could detect the error and somehow print something along the liens of
The text was updated successfully, but these errors were encountered: