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
fn main() { struct My { field: i32 } let v = [My { field: 0 }]; }
If we move the definition of My above main, or make My a tuple or unit struct, type inference works.
My
rust-analyzer version: 2020-07-20 (c9c518e)
The text was updated successfully, but these errors were encountered:
Duplicate of #1559.
Sorry, something went wrong.
No branches or pull requests
If we move the definition of
My
above main, or makeMy
a tuple or unit struct, type inference works.rust-analyzer version: 2020-07-20 (c9c518e)
The text was updated successfully, but these errors were encountered: