"Mismatched types" error when comparing the same struct for equality when referenced from two libraries #87534
Labels
C-discussion
Category: Discussion or questions that doesn't represent real issues.
I tried this code:
I would expect this code to compile but instead it emits the error "expected struct
b::NonGeneric
, found structNonGeneric
" which is odd as I would think they are the same type.Meta
Reproducible on 1.56.0-nightly.
Repository: https://github.com/andyyu2004/rust-bug-repro
The text was updated successfully, but these errors were encountered: