Incorrect reference to the glob binding caused by the macro expansion #113834
Labels
A-resolve
Area: Name resolution
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
I expected to see this happen:
h
should refer tocrate::b::HeaderMap
.Instead, this happened:
h
refers tocrate::b::http::HeaderMap
.If you remove the
#[derive(Debug)]
attribute, thenh
will refer tocrate::b::HeaderMap
.And there is also another example(#56593 (comment)):
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: