We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mod m1 { struct T1; const C1: i32 = 123; fn foo() { struct T2; const C2: i32 = 123; mod m2 { use super::T1; // OK use super::T2; // error[E0432]: unresolved import `super::T2` use super::C1; // OK use super::C2; // error[E0432]: unresolved import `super::C2` } } }
rustc 1.72.0
I think that T2 and C2 should be interpreted as located in the m1 module but limited by the scope of the foo function block.
T2
C2
m1
foo
The text was updated successfully, but these errors were encountered:
same as #79260
Sorry, something went wrong.
Closing as duplicate, if you disagree don't hesitate to say something.
No branches or pull requests
rustc 1.72.0
I think that
T2
andC2
should be interpreted as located in them1
module but limited by the scope of thefoo
function block.The text was updated successfully, but these errors were encountered: