Path in error message is neither public name nor internal name of type #56943
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-resolve
Area: Name resolution
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
dep/src/lib.rs
repro/src/lib.rs
The error message refers to both types as
dep::S
even though one isdep::S2
. I am reporting this as distinct from #21934 becausedep::S
isn't even the internal name of the other struct. That would bedep::m::S
. Printingdep::S2
would be ideal (as tracked in #21934) but printingdep::m::S
would still be a big improvement.Same thing in script form:
Mentioning @dgreid who hit this today. The real case involves multiple
Error
types across different modules, each re-exported from lib.rs under a unique name.The text was updated successfully, but these errors were encountered: