Using two version of the same crate gives confusing message #109161
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
D-crate-version-mismatch
Diagnostics: Errors or lints caused be the use of two different crate versions.
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
Afaiu this is caused by a
impl TraitFoo for StructBar
inCrateBar
which depends onCrateFoo
(which has the trait) and then trying to use a function onTraitFoo
on aStructBar
from the main project which depends on a different version ofCrateFoo
. In that case it would help to add the version number.Other cases
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: