You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that we can destruct struct as the left-hand side of an assignment since rust version 1.59.0. https://blog.rust-lang.org/2022/02/24/Rust-1.59.0.html
According to that, I wrote a simple demo, but something wrong happened.
rust-analyzer version: (eg. output of "Rust Analyzer: Show RA Version" command)
rust-analyzer version: 7e95c14 2022-05-17 stable rustc version: (eg. output of rustc -V)
rustc 1.61.0 (fe5b13d68 2022-05-18) relevant settings: (eg. client settings, or environment variables like CARGO, RUSTUP_HOME or CARGO_HOME)
The text was updated successfully, but these errors were encountered:
No that is correct, destructuring assignments have an expression as the LHS. It's just a subset of expressions that are allowed there. It's just the diagnostic that seems to misfire here
I noticed that we can destruct struct as the left-hand side of an assignment since rust version 1.59.0.
https://blog.rust-lang.org/2022/02/24/Rust-1.59.0.html
According to that, I wrote a simple demo, but something wrong happened.
rust-analyzer version: (eg. output of "Rust Analyzer: Show RA Version" command)
rust-analyzer version: 7e95c14 2022-05-17 stable
rustc version: (eg. output of
rustc -V
)rustc 1.61.0 (fe5b13d68 2022-05-18)
relevant settings: (eg. client settings, or environment variables like
CARGO
,RUSTUP_HOME
orCARGO_HOME
)The text was updated successfully, but these errors were encountered: