type annotation warning involving completely unrelated scopes #72616
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-inference
Area: Type inference
C-bug
Category: This is a bug.
D-incorrect
Diagnostics: A diagnostic that is giving misleading or incorrect information.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
This caused an error
however there is not relation between lines 5 and lines 8 as far as I understand which makes this weird.
The lines are not even in the same scope.
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: