[E0403] False positive generated for implicit future type #129265
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Current output
Desired output
Rationale and extra context
This code snippet uses neither of the two error code conditions presented in https://doc.rust-lang.org/error_codes/E0403.html.
It seems that the variable name
a
for the assignmentlet a = async { loop { test::a().await; } };
is used implicitly in the type name, which would cause the struct declaration to shadow the first declaration.Other cases
No response
Rust Version
Anything else?
No response
The text was updated successfully, but these errors were encountered: