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
I found this while working with nested function argument destructuring.
struct Outer<T>(T); struct Inner { field: u32 } fn stuff(Outer([...])) { ... }
When typing "Inner" inside the Outer() brackets in fn stuff and accepting the assist for destructuring it will write this incorrect code:
fn stuff
fn stuff(Outer(Inner { field }: Inner))
instead of the correct
fn stuff(Outer(Inner { field }): Outer<Inner>)
I am not familiar with rust-analyzer's internals so I don't know how hard to fix it is but that's it.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I found this while working with nested function argument destructuring.
When typing "Inner" inside the Outer() brackets in
fn stuff
and accepting the assist for destructuring it will write this incorrect code:instead of the correct
I am not familiar with rust-analyzer's internals so I don't know how hard to fix it is but that's it.
The text was updated successfully, but these errors were encountered: