Mismatched type for cyclic dev-dependency on same crate #79381
Labels
A-resolve
Area: Name/path resolution done by `rustc_resolve` specifically
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Repository @kaichaosun
See above link for minimal viable example. There are two crates, one is test-utils, another is client. This is the client code with a dev-dependency on test-utils:
This is test-utils code with a dependency on client:
Running
cargo test
(cargo test +stable
) in the workspace shows this error:I expect this code to correctly determine that the types are compatible, because they effectively reference the same crate.
Meta
rustc --version --verbose
:Other Issue: #59305
Discussion on Rust forum: https://users.rust-lang.org/t/cyclic-dev-dependency-get-type-mismatch-error/48391/1
The text was updated successfully, but these errors were encountered: